ServerSentEventMessage

import { ServerSentEventMessage } from "jsr:@ende/http";

interface

interface ServerSentEventMessage

Represents a message in the Server-Sent Event (SSE) protocol.

See also

Properties

comment

comment?: string

Ignored by the client.

event

event?: string

A string identifying the type of event described.

data

data?: string

The data field for the message. Split by new lines.

id

id?: string | number

The event ID to set the EventSource object's last event ID value.

retry

retry?: number

The reconnection time.

Source