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

    Interface JSONSSEEvent<T>

    A typed SSE event where the data field has been parsed as JSON.

    interface JSONSSEEvent<T = unknown> {
        event: string;
        data: T;
        id: string | null;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    Properties

    event: string

    Value of the event: field. Defaults to "message".

    data: T

    Parsed JSON data.

    id: string | null

    Value of the id: field. null if not present.