Skip to content

Redis adapter ^6.1.1 #492

Closed
Closed
@domg92

Description

@domg92

Hi There! Recently I'm playing around with upgrading redis adapter and socket IO version an I'm trying to understand one change.
In newer versions we're subscribing to all rooms:

this.subClient.psubscribe(this.channel + "*", onError);

For projects handling hundreds thousands of WS connections with multiple machines and node processes this solution is a little bit inefficient. So I decided to rewrite adapter as it worked a couple of versions before, to subscribe and unsubscribe to rooms that I want to. But maybe somehow I'm using socket.io in wrong way. Can you please explain that change? Below in the URL there is my implementation for adapter to subscribe and unsubscribe for rooms that I need at the moment.
Thanks in advance.

https://pastebin.com/8Gr5hKWw

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions