Skip to content

Websocket client not connecting to the socket.io server #4299

Answered by hrishibawane
hrishibawane asked this question in Q&A
Discussion options

You must be logged in to vote

So after debugging a lot I was able to figure this out.
The issue is that when using EIO v3 the server sends the CONNECT message packet. However, for EIO v4, the client has to send the CONNECT message packet.
CONNECT message packet is identified by text 40 where,
4 => engine.io packet type MESSAGE
0 => socket.io packet type CONNECT

This needs to be in the migration documentation along with the reversal of ping/pong messages.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@darrachequesne
Comment options

@Notadumdum
Comment options

Answer selected by hrishibawane
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