TypedRest for TypeScript - v0.5.0
    Preparing search index...

    Class ServerSentEvent

    A single event read from a Server-Sent Events (SSE) stream.

    Index
    • Creates a new event.

      Parameters

      • type: string

        The event type from the event: field. defaultEventType if the server did not specify one.

      • data: string

        The concatenated content of the event's data: fields.

      • Optionalid: string

        The id of the most recent id: field if any.

      Returns ServerSentEvent

    data: string

    The concatenated content of the event's data: fields.

    id?: string

    The id of the most recent id: field if any.

    type: string

    The event type from the event: field. defaultEventType if the server did not specify one.