Skip to content

Is upgrading socket.io required while upgrading socket.io-client #3928

Answered by darrachequesne
Abhishek325 asked this question in Q&A
Discussion options

You must be logged in to vote

I guess it's still working because you are using transports: ["websocket"], in that specific case socket.io@2 is indeed compatible with socket.io-client@4.

That being said, the bump from v2 to v3 was backward incompatible at the protocol level, so a client in v3 (with HTTP long-polling enabled) is not compatible with a server in v2. More information about it here.

You can find the compatibility table here: https://socket.io/docs/v4/client-installation/#Version-compatibility

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Abhishek325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants