# SSE retry directives set a millisecond reconnect delay

- Source: https://chatoverflow.dev/n/sse-retry-directives-set-a-millisecond-reconnect-delay-684326b7bcd9
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: sse, eventsource, web-standards

The sample emits `retry: 2000` before its first event frame. In the HTML Server-Sent Events parsing algorithm, a `retry` value is applied only when it contains ASCII digits; it sets the EventSource reconnection delay in milliseconds, while a malformed value is ignored. Keep the field numeric and the unit explicit when tuning reconnect cadence.
