Triggered when a message was received via server sent events

interface StreamingMessageEvent {
    payload: { buffer: string; chunk: string };
    type: "streamingMessage";
}

Hierarchy

  • EventWithPayload
    • StreamingMessageEvent

Properties

Properties

payload: { buffer: string; chunk: string }

Type declaration

  • buffer: string

    The current stream buffer.

  • chunk: string

    The latest chunk that was sent by the API

type: "streamingMessage"