interface ServerSentEventInit
implements EventInit
import { type ServerSentEventInit } from "https://deno.land/x/capi@v0.1.1-beta.1/deps/std/http.ts";
Properties
Optional arbitrary data to send to the client, data this is a string will
be sent unmodified, otherwise JSON.parse()
will be used to serialize the
value.
An optional id
which will be sent with the event and exposed in the
client EventSource
.
The replacer is passed to JSON.stringify
when converting the data
property to a JSON string.