API reference
/streaming
@senrijs/senri/streaming: Sending a response bit by bit. Server-Sent Events
Sending a response bit by bit. Server-Sent Events.
import { ... } from "@senrijs/senri/streaming";Functions and classes
| Name | What it does |
|---|---|
stream(c, run, options?) | Sends bytes bit by bit |
streamText(c, run, options?) | Sends text bit by bit |
streamSSE(c, run, options?) | Sends Server-Sent Events |
Types
StreamingApi
Prop
Type
SSEMessage
Prop
Type
SSEOptions
Prop
Type
Source: src/streaming.ts