Kind: Function
Source: src/helper/streaming/sse.ts
Part of: Helper
Signature
tsfunction streamSSE(c: Context, cb: (stream: SSEStreamingApi) => Promise<void>, onError: (e: Error, stream: SSEStreamingApi) => Promise<void>): Response
Parameters
| Name | Type |
|---|---|
c | Context |
cb | (stream: SSEStreamingApi) => Promise<void> |
onError | (e: Error, stream: SSEStreamingApi) => Promise<void> |
Returns: Response
Was this page helpful?