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
Post a Comment