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

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface oak.ServerSentEventInit
implements EventInit
import { type oak } from "https://deno.land/x/hex@0.6.5/src/fw/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.