kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createJSONSSEStream

    • Create an SSE client that yields typed JSON events.

      Type Parameters

      • T

      Parameters

      • config: SSEClientConfig

        SSE client configuration.

      • options: {
            reviver?: (this: any, key: string, value: any) => any;
            onError?: (err: unknown, evt: SSEEvent) => void;
        } = {}

        Optional reviver and error callback for JSON parsing.

      Returns AsyncIterable<JSONSSEEvent<T>>

      An async iterable of typed JSON events.