retry hint
The retry field in a Server-Sent Events stream, which tells the client how many milliseconds to wait before reconnecting after a break.
In more detail
It is advice from the server; clients should still back off if reconnects keep failing. It is written as a line such as retry: 5000 in the event stream.
Related terms
- Server-Sent Events — A standard way for a server to keep an HTTP response open and push a stream of text events to the client, in one direction only.
- reconnection — Re-establishing a dropped long-lived connection and, where supported, resuming from the last message received.
- Retry-After — The response header that tells a client how long to wait, in seconds or as a date, before trying again.
Taught in
- Server-Sent Events — Modern API Architecture: REST, GraphQL & gRPC