Skip to content

SseEvent

type SseEvent = unknown

One Server-Sent Events frame.

data is sent as-is when it is a string; any other JSON value is serialized with JSON.stringify. event, id, and retry map to the corresponding SSE fields and are omitted from the frame when not provided.

Learn: Server-sent events

Last updated: