Skip to content

Commit b1216ee

Browse files
refactor: use correct Engine.IO protocol revision
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://github.com/socketio/engine.io-protocol
1 parent d353647 commit b1216ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/sio_client_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ namespace sio
222222
} else {
223223
ss<<uo.get_host();
224224
}
225-
ss<<":"<<uo.get_port()<<"/socket.io/?EIO=4&transport=websocket";
225+
ss<<":"<<uo.get_port()<<"/socket.io/?EIO=3&transport=websocket";
226226
if(m_sid.size()>0){
227227
ss<<"&sid="<<m_sid;
228228
}

0 commit comments

Comments
 (0)