We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7199d1b commit 9d170a7Copy full SHA for 9d170a7
docs/emit.md
@@ -42,6 +42,9 @@ function onConnect(socket){
42
43
// sending to all clients on this node (when using multiple nodes)
44
io.local.emit('hi', 'my lovely babies');
45
+
46
+ // sending to all connected clients
47
+ io.emit('an event sent to all connected clients');
48
49
};
50
0 commit comments