Skip to content

Commit

Permalink
Correct variable name in cheatsheet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Nov 29, 2019
1 parent 8c88b2d commit 7f26550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheet.md
Expand Up @@ -78,7 +78,7 @@ io.onConnection(channel => {

// will trigger a specific event on all channels in a
// specific room and add the senderId as a second parameter
channel.forward(channel.sroomId).emit('chat message', 'Hello!')
channel.forward(channel.roomId).emit('chat message', 'Hello!')

// listen for a forwarded message
channel.on('chat message', (data, senderId) => {
Expand Down

0 comments on commit 7f26550

Please sign in to comment.