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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -