[Typescript] Socket
from socket.io
cannot be unioned with Socket
from socket.io-client
#3872
Labels
bug
Something isn't working
Describe the bug
In 3.x of socket.io I could do the following:
In 4.x this now produces an error on the
ws.on
call:To Reproduce
Socket.IO server / client version:
4.0.0
See above
Expected behavior
I realize this was a major version bump between 3 and 4, so I can understand if this issue needs to be closed.
This also might be more of a typescript problem than anything else. I know the templated emitter feature was added in 4 (which I am looking forward to using once I get around this!) which I assume is what has made the method signatures incompatible?
I noticed I can "fix" this by doing
which is pretty goofy.
Additional context
I am on Typescript 4.0.2
The text was updated successfully, but these errors were encountered: