Created
June 22, 2011 04:51
-
-
Save ghiden/1039525 to your computer and use it in GitHub Desktop.
sending a message to specific clients with socket.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* just a snippet */ | |
var client_ids = [a, b, c]; | |
for (var cid in client_ids) { | |
socket.clients[client_ids[cid]].send('hello'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment