Skip to content

Instantly share code, notes, and snippets.

Fahad Kassim fadsel

Block or report user

Report or block fadsel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fadsel / socket-cheatsheet.js
Last active Jul 5, 2017 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for
View socket-cheatsheet.js
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
You can’t perform that action at this time.