Sse
The demo replacement for @/shared/api/sse, aliased in
only for --mode demo. Replays a recorded LLM stream (raw SSE body text)
through the same frame semantics as the real client, with a small per-token
delay for the live typewriter feel. An unrecorded stream degrades to a short
notice rather than a failed request.
Functions¶
streamSSE()¶
Defined in: src/demo/api/sse.ts:16
Replays a recorded SSE stream, matching the real streamSSE signature.
Parameters¶
| Parameter | Type |
|---|---|
url |
string |
body |
unknown |
handlers |
SSEHandlers |
signal? |
AbortSignal |
Returns¶
Promise\<void>