covenix / SseEventInit
Interface: SseEventInit
Defined in: src/sse.ts:2
Per-event SSE framing fields (everything except the payload).
Properties
event?
optionalevent?:string
Defined in: src/sse.ts:7
Event name. The browser dispatches it via addEventListener(name, …); without it the event lands in the generic onmessage handler.
id?
optionalid?:string|number
Defined in: src/sse.ts:12
Event id. The browser echoes the last one as Last-Event-ID on reconnect, letting the server resume the stream.
retry?
optionalretry?:number
Defined in: src/sse.ts:14
Reconnection delay hint (ms) the client should wait after a drop.
