Skip to content
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

Issue with fetchSockets() and getNumSub() #466

Open
omkarrepal opened this issue Nov 11, 2022 · 0 comments
Open

Issue with fetchSockets() and getNumSub() #466

omkarrepal opened this issue Nov 11, 2022 · 0 comments

Comments

@omkarrepal
Copy link

Hi Team,

I'm facing issue with fetchSockets()

When I'm calling function fetchSockets() it's throwing following error.

Cannot read properties of undefined (reading 'then')\n at RedisAdapter.getNumSub

It's going inside following code block inside getNumSub() method

 else if (typeof this.pubClient.pSubscribe === "function") {
            return this.pubClient
                .sendCommand(["pubsub", "numsub", this.requestChannel])
                .then((res) => parseInt(res[1], 10));
        }

and then it throws above error.

Redis version is ^4.3.1
Socket.IO version is ^4.5.2
I'm using latest redis-adapter version ^7.2.0

@omkarrepal omkarrepal changed the title Issue with fetchSockets() Issue with fetchSockets() and getNumSub() Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant