Commit 1c8cba8
committed
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#13901 parent 4873a23 commit 1c8cba8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments