Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check the type of the initial packet
Before this fix, the client could mark the polling transport as open even though the handshake packet was not received properly (for example, after a parsing error). This could lead to writes (POST requests) without "sid" query param, which failed with: ``` {"code":2,"message":"Bad handshake method"} ``` Related: - #636 - socketio/socket.io-client#1390 Cherry-picked from master: 1c8cba8
- Loading branch information