Skip to main content
Go to Latest
interface ServerSentEventMessage
import { type ServerSentEventMessage } from "https://deno.land/std@0.221.0/http/mod.ts";

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

Properties

optional
comment: string

Ignored by the client.

optional
event: string

A string identifying the type of event described.

optional
data: string

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

optional
id: string | number

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

optional
retry: number

The reconnection time.