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

Rooms with multiple node processes #13

Closed
pravincar opened this issue Jun 13, 2014 · 8 comments
Closed

Rooms with multiple node processes #13

pravincar opened this issue Jun 13, 2014 · 8 comments

Comments

@pravincar
Copy link

How do I get the list of connected clients in a particular room across nodes.

io.sockets.adapter.rooms seems to have the list of clients only in a specific room.

@FREEZX
Copy link

FREEZX commented Jun 13, 2014

This feature is not yet available for 1.0, and it's being discussed:
socketio/socket.io#1428

@pravincar
Copy link
Author

I'm new to Redis. What are the keys in which the clients and rooms list are stored? Is this documented somewhere?

@FREEZX
Copy link

FREEZX commented Jun 16, 2014

I just analyzed the redis adapter and it seems like nothing is stored there, only the pubsub mechanism is used.

@jeltok
Copy link

jeltok commented Oct 6, 2014

I would also like to have the feature implemented.
I guess the kind folks who develop the socket.io-redis plugin will have to override the 'add', 'del', and 'delAll' functions of socket.io-adapter.

@aravindsrivats
Copy link

Is this feature available?

@fgodino
Copy link

fgodino commented May 21, 2016

I created a PR that adds this functionality and is up to date with the current Adapter. Check it out #109

@artofspeed
Copy link

@fgodino can i safely use socket.rooms to get all the rooms a socket has joined?

@darrachequesne
Copy link
Member

Closed by 679e73c

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

No branches or pull requests

7 participants