Skip to content

Commit 27a0ab5

Browse files
docs: restore the 'upgrades' param in the handshake
Related: 660263f
1 parent bd2ba23 commit 27a0ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The revision 3 can be found here: https://github.com/socketio/engine.io-protocol
4747
1. Transport establishes a connection to the Engine.IO URL .
4848
2. Server responds with an `open` packet with JSON-encoded handshake data:
4949
- `sid` session id (`String`)
50+
- `upgrades` possible transport upgrades (`Array` of `String`)
5051
- `pingTimeout` server configured ping timeout, used for the client
5152
to detect that the server is unresponsive (`Number`)
5253
- `pingInterval` server configured ping interval, used for the client
@@ -65,7 +66,7 @@ they're expected to be "opening" and "closing" all the time.
6566
GET /engine.io/?EIO=4&transport=polling&t=N8hyd6w
6667
< HTTP/1.1 200 OK
6768
< Content-Type: text/plain; charset=UTF-8
68-
0{"sid":"lv_VI97HAXpY6yYWAAAC","pingInterval":25000,"pingTimeout":5000}
69+
0{"sid":"lv_VI97HAXpY6yYWAAAC","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000}
6970
```
7071

7172
Details:

0 commit comments

Comments
 (0)