Module

x/oak/mod.ts>ServerSentEventInit

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface ServerSentEventInit
implements EventInit
import { type ServerSentEventInit } from "https://dotland.deno.dev/x/oak@v12.0.1/mod.ts";

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.