njones / socketio

A Modern SocketIO library for go
MIT License
64 stars 9 forks source link

Fix EIO Protocol Len() sum and EOH sessionIDs #20

Closed njones closed 2 years ago

njones commented 2 years ago

Fix issues around calculating the length of the pingTimeout and pingInterval values (as seconds). Refactor the PayloadV3 to remove duplicate code, and push the processing to PayloadV2 as expected. Update the EOH error to include the current SessionID so that it can be used to populate the SIO transport before it's called the second time. This allows for SIO v2 auto connections during the Handshake phase.