Extending tutorial to support broadcasting only to peer in room

Issue #20 new
Barry Wilks created an issue

This is a great tutorial. Many thanks for taking the time to create it. I have everything working but I'm having some trouble seeing how I can host multiple sessions in separate rooms without the messages being broadcast across rooms and interfering with the signalling protocols. Any idea how to proceed on this? Any help would be greatly appreciated.

Thanks again.

Comments (1)

  1. Barry Wilks reporter

    Never mind. Was able to work this out by using:

    socket.broadcast.to(socket.room).emit('message', room);

    You can close this issue. Thanks again for the great tutorial.

  2. Log in to comment