Skip to content

io.in(${roomId}).fetchSockets() sometimes cannot get socket from other server #544

@Daniel-kekeke

Description

@Daniel-kekeke

I am using fetchSockets() in a multi-node setup with a PostgreSQL adapter and I encounter inconsistencies where socket IDs from other node are sometimes not included in the results.

This is my code:

    await socket.join(room);
    const socketInstances = await io.in('abc').fetchSockets();
    // socketInstances is not consistence

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