Skip to main content
Module

x/dext/deps/mod.ts>oak.ServerSentEventInit

The Preact Framework for Deno
Latest
interface oak.ServerSentEventInit
implements EventInit
import { type oak } from "https://deno.land/x/dext@0.10.5/deps/mod.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.