Skip to content

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

Open
@dizzyjaguar

Description

@dizzyjaguar

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions