You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In web processes we have the option of sending a message to all sockets except a specific one by using broadcasting. It would be nice to have this functionality when sending messages from non-web processes as well.
In order to make the emitter interchangeable with namespaces on web processes (see socketio/socket.io#3629), I propose to add a method .except() which can be used as
io.to('room').except('id').emit('hi','all');
I'd be happy to file a PR for this if the feature would be accepted. An implementation could look like this:
In web processes we have the option of sending a message to all sockets except a specific one by using broadcasting. It would be nice to have this functionality when sending messages from non-web processes as well.
In order to make the emitter interchangeable with namespaces on web processes (see socketio/socket.io#3629), I propose to add a method
.except()
which can be used asI'd be happy to file a PR for this if the feature would be accepted. An implementation could look like this:
This should work with socket.io-redis out of the box.
The text was updated successfully, but these errors were encountered: