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 db831a3 commit 2917942Copy full SHA for 2917942
docs/emit.md
@@ -29,7 +29,7 @@ function onConnect(socket){
29
io.of('myNamespace').to('room').emit('event', 'message');
30
31
// sending to individual socketid (private message)
32
- socket.to(<socketid>).emit('hey', 'I just met you');
+ io.to(<socketid>).emit('hey', 'I just met you');
33
34
// sending with acknowledgement
35
socket.emit('question', 'do you think so?', function (answer) {});
0 commit comments