Skip to main content

Consume a byte stream

Live response iterators are available inside the local low-code V8 runtime. The initial await resolves after response headers; each iterator step then waits for data, EOF, or an error with backpressure.
Chunks are transport fragments, not application records or multipart boundaries. The runtime limits concurrent streams, chunk size, buffered data, and total execution time. Closing, breaking iteration, cancellation, failure, or Component completion releases the upstream request. Use a Storage target instead when the goal is to retain the complete response. It avoids exposing transport chunks to application code.

Consume Server-Sent Events

Set streamFormat: 'sse' for an upstream text/event-stream response.
Each item has { event, data, id? }. data remains a string; JSON and provider markers such as [DONE] are application data and must be interpreted explicitly. Reconnect and Last-Event-ID replay are not automatic. Incomplete frames at EOF are discarded.
Live byte and SSE iterators are local-runtime capabilities. They cannot be returned through remote JSON SDK calls or Custom Node.js, and they are unavailable with proxy mode. This does not add inbound SSE to RevoEngine Endpoints.
Continue with http.
Last modified on November 8, 2026