Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This line in the README suggests that you should be able to use the server to send messages to all clients in a room. When I do that I end up with the stacktrace below error.
io.to('room42').emit('hello', "to all clients in 'room42' room");
Not sure if I have understood how to use the server/namespace correctly, but I found this bug in my app when I wanted to update to socketio v3. In my app I want the server to broadcast a message to a specific room and that triggers the following stacktrace.
Please either merge this PR or explain to me how I'm supposed to broadcast a message to a specific room. (tried to do it with
client.broadcast.to(roomId)
, but that doesn't actually send it to everyone in the room. My guess is that it's because the client doesn't actually know what sockets are in the specified room.