Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/http/mod.ts>ServerSentEventMessage

The Deno Standard Library
Latest
interface ServerSentEventMessage
import { type ServerSentEventMessage } from "https://deno.land/std@0.224.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.