Is upgrading socket.io required while upgrading socket.io-client #3928
-
Hi folks, I upgraded my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From my experience, yes, it is required. If you have different versions, they will not connect. |
Beta Was this translation helpful? Give feedback.
-
I guess it's still working because you are using 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 |
Beta Was this translation helpful? Give feedback.
I guess it's still working because you are using
transports: ["websocket"]
, in that specific casesocket.io@2
is indeed compatible withsocket.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