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.Context#sendEvents

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method oak.Context.prototype.sendEvents
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { Context } = oak;

Convert the connection to stream events, returning an event target for sending server sent events. Events dispatched on the returned target will be sent to the client and be available in the client's EventSource that initiated the connection.

This will set .respond to false.

Parameters

optional
options: ServerSentEventTargetOptions