Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Socket.io Express 3 sessions

Tags:

People also ask

Can you use Socket.IO with Express?

Socket.IO can be used based on the Express server just as easily as it can run on a standard Node HTTP server. In this section, we will fire the Express server and ensure that it can talk to the client side via Socket.IO.

How many connections Socket.IO can handle?

Once you reboot your machine, you will now be able to happily go to 55k concurrent connections (per incoming IP).

How many rooms can Socket.IO have?

socket.io rooms are a lightweight data structure. They are simply an array of connections that are associated with that room. You can have as many as you want (within normal memory usage limits). There is no heavyweight thing that makes a room expensive in terms of resources.


Is there a good way of using sessions with Socket.io in Express 3.0? A way of getting the clients' session id in a safe way? So that I can send notices to members specific to their account and make private chats from member to member?

I'm using MySQL store in Express 3.0