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 ArticleAnswer 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 ArticleSending 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