Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a local flag that can prevent the adapter (redis) from publishing… #2628

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

tal-beja
Copy link
Contributor

… the emit to the pub\sub server

@tal-beja
Copy link
Contributor Author

Works with this pull request:
socketio/socket.io-redis-adapter#119

@darrachequesne
Copy link
Member

Thanks!

@darrachequesne darrachequesne added this to the 1.7.0 milestone Nov 27, 2016
darrachequesne pushed a commit that referenced this pull request Apr 27, 2018
To match the behaviour on the namespace (see #2628).
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
That new flag will prevent the adapter (redis) from publishing the emit to the pub/sub server.

When several instances of a server receive the same event from a third party (not from a client), each server instance broadcasts the event to all his clients. With the local flag, and the change in the redis adapter, each server instance send the event only to his client, so each client receive only one unique event.
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants