Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants