Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

filterSocketsByUser() with multiple instances #129

Open
benjhoo opened this issue Dec 1, 2016 · 0 comments
Open

filterSocketsByUser() with multiple instances #129

benjhoo opened this issue Dec 1, 2016 · 0 comments

Comments

@benjhoo
Copy link

benjhoo commented Dec 1, 2016

Hi,
I'm using passport.socketio to manage my users authentication with websocket and it works perfectly.

Also, I'm using the filterSocketsByUser() function in order to filter the sockets by user id.
It works well if I get one instance of my app launched. But, with loadbalancing, the function only returns sockets depending on the instance the users are connected to.

Is there a way to get back all the sockets of a user connected through multiple instances ?

(io.emit is well received by all clients, regardless of the instance the user is connected to)

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant