Skip to main content
method oak.ServerSentEventTarget.prototype.dispatchMessage
import { oak } from "https://deno.land/x/create_react_app@v0.1.2/deps.ts";
const { ServerSentEventTarget } = oak;

Dispatch a message to the client. This message will contain data: only and be available on the client EventSource on the onmessage or an event listener of type "message".

Parameters

data: any

Returns

boolean