Skip to content

Commit e26b71c

Browse files
aristovdarrachequesne
authored andcommittedOct 7, 2017
[docs] Fix typo in API docs (#3066)
1 parent 3386e15 commit e26b71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ io.on('connection', (socket) => {
661661
socket.join('room 237', () => {
662662
let rooms = Object.keys(socket.rooms);
663663
console.log(rooms); // [ <socket.id>, 'room 237' ]
664-
io.to('room 237', 'a new user has joined the room'); // broadcast to everyone in the room
664+
io.to('room 237').emit('a new user has joined the room'); // broadcast to everyone in the room
665665
});
666666
});
667667
```

0 commit comments

Comments
 (0)
Please sign in to comment.