Socket.io: How to count clients in a room with Socket.io-redis adapter

后端 未结 3 606
执念已碎
执念已碎 2021-02-05 14:19

I start building chat server using Socket.io with multiple nodes. It uses Socket.io-redis to connect all servers together and rooms for messaging.

When a client connects

3条回答
  •  不要未来只要你来
    2021-02-05 14:58

    another approach is to use the customRequest/customHook methods in socket.io-redis 3.1.0. I tried and it works. Details here. https://github.com/socketio/socket.io-redis/issues/137

提交回复
热议问题