sveltekit-eventsource - v1.0.0
    Preparing search index...

    Type Alias EventSourceMessage<T>

    EventSourceMessage:
        | { retry: number }
        | { data: T | T[]; event?: string; id?: number }

    A single SSE message block produced by the server.

    • Use { retry } to instruct the browser reconnect delay.
    • Use { event, data, id } to emit application events.

    Type Parameters

    • T = any