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

x/hex/src/service/deps.ts>oak.ServerSentEventInit

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface oak.ServerSentEventInit
implements EventInit
import { type oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { ServerSentEventInit } = oak;

Properties

optional
id: number

An optional id which will be sent with the event and exposed in the client EventSource.

optional
replacer: (string | number)[] | ((
this: any,
key: string,
value: any,
) => any)

The replacer is passed to JSON.stringify when converting the data property to a JSON string.

optional
space: string | number

Space is passed to JSON.stringify when converting the data property to a JSON string.