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
721 stars 121 forks source link

Made changes to add a `remoteDisconnect` feature #91

Closed Bioblaze closed 3 years ago

Bioblaze commented 3 years ago

Added remoteDisconnect feature. Needed it for a personal project i'm in the middle of doing right now. Where a API needs to disconnect a user depending on their action where the socket.io is in pod on kubernetes, using socket.io-redis to keep them in sync, and idk what socket.io server has the user, so i need a remoteDisconnect feature since i do store their socketid.

darrachequesne commented 3 years ago

Merged in https://github.com/socketio/socket.io-emitter/commit/a70db12877d901dd0f7085def0a91145b7c83163. Thanks!