Fix #65: allow excluding all sockets in a room#66
Fix #65: allow excluding all sockets in a room#66darrachequesne merged 2 commits intosocketio:masterfrom
Conversation
|
Hi! Thanks for the pull request. If I understand correctly, this will allow to do: io.except(<room>).emit(/* ... */);
socket.broadcast.except(<room>).emit(/* ... */);I'm wondering if it would make sense to also add: io.to(<room1>).except(<room2>).emit(/* ... */);
socket.to(<room1>).except(<room2>).emit(/* ... */);What's your opinion on this? Related: socketio/socket.io#3657 |
|
I did not add an As for the Furthermore, I think that this functionality should be added to As a conclusion, I propose that I do the following, if you agree:
|
|
Sounds good to me 👍 |
|
@darrachequesne I've created all required pull requests in their respective repositories. I should note that I would still like to add tests for excluding specific rooms as well, but for that to work |
This PR adds a fix for #65 which allows excluding all sockets in a specific room when broadcasting.