Skip to content

Emitting to all sockets in a room in current instance #135

Closed
@KristjanTammekivi

Description

@KristjanTammekivi

Hey, so here's my use case:

I have a socket.io server, which listens for changefeeds from RethinkDB and passes the messages to the clients that are in a specific room. This server runs in 2 instances. Some upcoming functionality however requires me to use the redis adapter for shared rooms and because of that, every changefeed message would be sent twice. Is there a way I can only emit to the current instance sockets?

I could use an MQ in front to make sure that each changefeed message is sent once, but that would only add further complexity, so hopefully there's a built in solution.

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