Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/categories/08-Miscellaneous/eio-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,16 @@ CLIENT SERVER

│ *** Handshake *** │
│ │
│ ◄───────────────────────────────────────────────── │
│ GET /engine.io/?EIO=4&transport=polling&sid=... │
│ ─────────────────────────────────────────────────► │
│ ◄────────────────────────────────────────────────┘ │
│ 2 │ (ping packet)
│ ─────────────────────────────────────────────────► │
│ 3 │ (pong packet)
```

The client now starts polling the server again (to start receiving the `ping` packet), and includes the `sid` (sent in the handshake process) query parameter in all subsequent requests.

At a given interval (the `pingInterval` value sent in the handshake) the server sends a `ping` packet and the client has a few seconds (the `pingTimeout` value) to send a `pong` packet back.

If the server does not receive a `pong` packet back, then it SHOULD consider that the connection is closed.
Expand Down