Skip to main content
Latest
interface oak.ServerSentEventInit
implements EventInit
import { type oak } from "https://deno.land/x/create_react_app@v0.1.2/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.