- 
                Notifications
    You must be signed in to change notification settings 
- Fork 489
Open
Description
I have a local setup with Redis and some application nodes. I have another redis client that is snooping on the channels that the adapter is using.
Whenever I'm snooping I get this error:
Error: timeout reached while waiting for sockets response
I looked into it and this error is because while snooping request.numSub > request.msgCount since my other client is just a spy. It would be nice if observing the channel didn't break the functionality. Perhaps there could be a way to count participant subs only.
socket.io-redis-adapter/lib/index.ts
Lines 380 to 386 in 3242d8e
| if (request.msgCount === request.numSub) { | |
| clearTimeout(request.timeout); | |
| if (request.resolve) { | |
| request.resolve(request.sockets); | |
| } | |
| this.requests.delete(requestId); | |
| } | 
Metadata
Metadata
Assignees
Labels
No labels