numsub and msgCount are different type#155
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
.clientsand.clientRoomsbecause of this check https://github.com/socketio/socket.io-redis/blob/f2dd9fea22963a697666f135247d6f0de1ee7f29/index.js#L252-Lundefinedrequest.msgCountwas an int andrequest.numsubwas a string.