x/oak/server_sent_event.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
class SSEStreamTarget
extends EventTarget
import { SSEStreamTarget } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/server_sent_event.ts?s=SSEStreamTarget";

Constructors

new
SSEStreamTarget(context: Context, unnamed 1?: ServerSentEventTargetOptions)
[src]

Properties

readonly
closed: boolean
[src]

Methods

close(): Promise<void>[src]
dispatchComment(comment: string): boolean[src]
dispatchEvent(event: CloseEvent | ErrorEvent): boolean[src]
dispatchMessage(data: any): boolean[src]
[Symbol.for("Deno.customInspect")](inspect: (value: unknown) => string)[src]
[Symbol.for("nodejs.util.inspect.custom")](
depth: number,
options: any,
inspect: (value: unknown, options?: unknown) => string,
)
[src]