Interface SseFrameExperimental

interface SseFrame {
    data: string;
    event: string;
    id?: string;
}

Properties

Properties

data: string

Every data: line's value, joined with \n (spec: multiple data: lines accumulate into one multi-line value).

event: string

The event: field's value, or "message" per spec default when omitted.

id?: string

The id: field's value, when the frame carried one. Replayed as Last-Event-ID on a stream reconnect.