-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Argument of type '(nsp: any) => RedisAdapter' is not assignable to parameter of type 'AdapterConstructor' socket.io version 4.6.0 #4624
Comments
Hi! It seems you have two different versions of the
We have tried to fix this in version As a workaround, could you try running |
having the same issue with |
I'm having the same issue with |
Yeah not fixed |
Same I tried running +-- @socket.io/cluster-adapter@0.2.1
| `-- socket.io-adapter@2.4.0
`-- socket.io@4.6.1
`-- socket.io-adapter@2.5.2 |
For future readers: We have added
So this issue does not happen in the future. Please reopen if needed! |
The bug
I've been using
@socket.io/redis-adapter @8.1.0
withsocket.io @4.5.4
without any issues.Now that I upgraded to socket.io
4.6.0
it suddenly stopped working and I'm getting an error.As it is mentioned in the documents (https://socket.io/docs/v4/redis-adapter/),
This is how my code looks like (simplified for the sake of this issue):
And I'm getting an error with
io.adapter(createAdapter(pubClient, subClient))
:To Reproduce
Example in the docs (https://socket.io/docs/v4/redis-adapter/) with latest versions of
@socket.io/redis-adapter
,socket.io
,redis
and typescript gives a type error.Platform:
The text was updated successfully, but these errors were encountered: