basalt / http/src / SseOptions
Interface: SseOptions
Defined in: http/src/sse.ts:41
Edge-hardening knobs for a stream — defends against dead/idle connections.
Properties
heartbeatMs?
> optional heartbeatMs?: number
Defined in: http/src/sse.ts:47
Send a comment ping every N ms. Keeps proxies from closing an idle stream and surfaces a dead socket (the write fails) instead of leaking the connection. Off when unset.
maxDurationMs?
> optional maxDurationMs?: number
Defined in: http/src/sse.ts:52
Hard cap on a single stream's lifetime, in ms. The stream is closed when it elapses — a backstop against connections that never disconnect. Off when unset.