socketio / socket.io-redis-emitter

The Socket.IO Redis emitter, allowing to communicate with a group of Socket.IO servers from another Node.js process.
https://socket.io/docs/v4/redis-adapter/
MIT License
722 stars 121 forks source link

Send a message to the room, why can you receive it if you are not in this room? #97

Closed einsqing closed 3 years ago

einsqing commented 3 years ago

Send a message to the room, why can you receive it if you are not in this room?

"socket.io": "^4.0.0",
"socket.io-client": "^4.0.0",
"socket.io-emitter": "^3.2.0",
"socket.io-redis": "^6.1.0",

io.to(sid).emit('hello', "to all clients in 'room42' room except sender");

darrachequesne commented 3 years ago

Closed as duplicate of https://github.com/socketio/socket.io-redis/issues/394.