Commit 088dcb4
committed
feat: add the "maxPayload" field in the handshake details
So that clients in HTTP long-polling can decide how many packets they
have to send to stay under the maxHttpBufferSize value.
This is a backward compatible change which should not mandate a new
major revision of the protocol (we stay in v4), as we only add a field
in the JSON-encoded handshake data:
```
0{"sid":"lv_VI97HAXpY6yYWAAAC","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000,"maxPayload":1000000}
```
Related: socketio/socket.io-client#15311 parent 657f04e commit 088dcb4
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| |||
3356 | 3357 | | |
3357 | 3358 | | |
3358 | 3359 | | |
3359 | | - | |
| 3360 | + | |
3360 | 3361 | | |
3361 | 3362 | | |
3362 | 3363 | | |
| |||
3393 | 3394 | | |
3394 | 3395 | | |
3395 | 3396 | | |
3396 | | - | |
| 3397 | + | |
3397 | 3398 | | |
3398 | 3399 | | |
3399 | 3400 | | |
| |||
0 commit comments