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

Get the list of all the ids of room across different servers #1830

Closed
StevenRoan opened this issue Oct 18, 2014 · 1 comment
Closed

Get the list of all the ids of room across different servers #1830

StevenRoan opened this issue Oct 18, 2014 · 1 comment

Comments

@StevenRoan
Copy link

I've distributed socket.io processes to multiple servers to scale up my service, and I need to get all the ids of rooms that exist in different servers.

I know we can get the rooms name in single process by

Object.keys(io.sockets.adapter.rooms)

but I cannot get the information of the rooms in other server by socket.io it self.

So far, I noticed that there are several related discussions and pull request:

Automattic/socket.io#1811
Automattic/socket.io-redis pull#15

My questions are:

  • What I mentioned is correct or not?
  • Should socket.io include some inter-server communication mechanism to let user get the information from other server? Or this kind of adapter should be implemented in each customized adapter itself as mentioned in the Introduction of Sokcet.io 1.0 # Scalability
@StevenRoan StevenRoan changed the title Get the list of all the rooms across different servers Get the list of all the ids of room across different servers Oct 18, 2014
@darrachequesne
Copy link
Member

That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible).

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

2 participants