Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/utils.ts>ReadableSSEStreamResult

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
interface ReadableSSEStreamResult
import { type ReadableSSEStreamResult } from "https://deno.land/x/deno_nest@v3.15.1/src/utils.ts";

Methods

write(messageEvent: SSEMessageEvent): void

write message to stream, but it may log error if the connection closed before

end(): void

write last message and end signal to stream, but it may log error if the connection closed before