Skip to content

Commit

Permalink
refactor: use correct Engine.IO protocol revision
Browse files Browse the repository at this point in the history
The 3rd revision is included in Socket.IO v1/v2, whereas the 4th is
included in Socket.IO v3.

Note: this query parameter is not currently checked on the server-side

Reference: https:/socketio/engine.io-protocol
  • Loading branch information
darrachequesne committed Jan 9, 2021
1 parent d353647 commit b1216ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/sio_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ namespace sio
} else {
ss<<uo.get_host();
}
ss<<":"<<uo.get_port()<<"/socket.io/?EIO=4&transport=websocket";
ss<<":"<<uo.get_port()<<"/socket.io/?EIO=3&transport=websocket";
if(m_sid.size()>0){
ss<<"&sid="<<m_sid;
}
Expand Down

0 comments on commit b1216ee

Please sign in to comment.