-
Notifications
You must be signed in to change notification settings - Fork 486
numsub and msgCount are different type #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was causing a timeout error on `.clients` and `.clientRooms` because of this check https://github.com/socketio/socket.io-redis/blob/f2dd9fea22963a697666f135247d6f0de1ee7f29/index.js#L252-Lundefined `request.msgCount` was an int and `request.numsub` was a string.
Are you sure that is the root cause? With: console.log(typeof numsub[1]);
numsub = numsub[1]; When running And |
Here is what I get
|
I just tested again this only fixes |
@barisusakli clientRooms can timeout if the |
I am not sure how can I check? Added a console.log here
and it comes up as |
Ignore my previous comment, here is the debug output
|
For the string According to the logs, you request the client id |
It works when I use a proper sid, but if I remove the change in this PR the
Here is the code I used,
Not sure if there is a cleaner way of accessing And yeah seems like |
This was causing a timeout error on
.clients
and.clientRooms
because of this check https://github.com/socketio/socket.io-redis/blob/f2dd9fea22963a697666f135247d6f0de1ee7f29/index.js#L252-Lundefinedrequest.msgCount
was an int andrequest.numsub
was a string.