Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/src.deps.ts>ServerSentEventMessage

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
interface ServerSentEventMessage
import { type ServerSentEventMessage } from "https://deno.land/x/fathym_common@v0.0.142/src/src.deps.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.