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


is possible send data using socket.io-node chosen group of users? example, how implement chat different rooms? dont want .broadcast() send data logged in users.

normally should have each room list of connected user , user have client object should have stored somewhere. when want send message specific room, have iterate on connected user of room , access client object , send data.

in short, possible have send data each of users in group one-by-one.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -