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

io.fetchSockets() sometimes works across instances, sometimes not #557

Open
dizzyjaguar opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@dizzyjaguar
Copy link

I have an app where I need to send a list of all connected clients and rooms to all connected clients.
Sometimes I'm able to get all clients across multiple instances with io.fetchSockets() and other times it will only grab clients from the same instance.

I'm not exactly sure what to try at this point, but I'm almost certain this has to be the issue.

Here is related dependencies:

"@socket.io/redis-adapter": "^8.3.0",
"socket.io": "^4.8.1",
"socket.io-client": "^4.8.1"
"ioredis": "^5.5.0",
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

1 participant