Skip to content

Commit

Permalink
[docs] Fix typo in API docs (#3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristov authored and darrachequesne committed Oct 7, 2017
1 parent 3386e15 commit e26b71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ io.on('connection', (socket) => {
socket.join('room 237', () => {
let rooms = Object.keys(socket.rooms);
console.log(rooms); // [ <socket.id>, 'room 237' ]
io.to('room 237', 'a new user has joined the room'); // broadcast to everyone in the room
io.to('room 237').emit('a new user has joined the room'); // broadcast to everyone in the room
});
});
```
Expand Down

0 comments on commit e26b71c

Please sign in to comment.