Can the v3 client connect to Socket.IO v2 servers? #123
Unanswered
NarvaloBanouu
asked this question in
Q&A
Replies: 1 comment
-
|
Short answer: No, the v3 client only supports EIO=4 (Socket.IO v4+ protocol). Looking at the code, the client hardcodes The server has Your options:
Realistically, if you control the servers, upgrading them to v4 is the way to go. If you don't control them, you'd need a separate client library that implements the older protocol. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My Go client needs to connect to multiple Socket.IO servers. Some servers are running Socket.IO v2 (EIO=3) and others are running Socket.IO v3+ (EIO=4).
I understand that this library's server can accept both v2 and v3 clients by detecting the EIO parameter. However, I'm unsure if the client can do the same.
My question: Can I configure the v3 client to connect to Socket.IO v2 servers by setting EIO=3 in the query parameters?
Is it possible for the v3 client to speak the v2 protocol? Or do I need to use the v2 client for v2 servers?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions