Quantcast
Channel: Sending data only to chosen users using Socket.io-node - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by The Mighty Chris for Sending data only to chosen users using...

socket.io has a grouping functionality built inOn the socket object for a single connection, like you get passed when a new user connects, you can call .join('roomName') where roomName is any string...

View Article



Answer by HoLyVieR for Sending data only to chosen users using Socket.io-node

Normally you should have for each room a list of connected user and those user all have a client object that you should have stored somewhere. So when you want to send a message to a specific room, you...

View Article

Sending data only to chosen users using Socket.io-node

Is it possible to send data using socket.io-node just to chosen group of users? For example, how could I implement chat with different rooms? I dont want .broadcast() to send data to all logged in users.

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images