Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Send the message to all clients except the sender
- socket.broadcast.emit('event', data);
- // Same but not guaranteed
- socket.volatile.emit('event', data);
- // Send the message to all clients including the sender
- io.sockets.emit('event', data);
Add Comment
Please, Sign In to add comment