core.botresponsestream | Medplum

BotResponseStream interface

Response stream interface for bot streaming responses. Compatible with both VMContext and AWS Lambda runtimes.

Signature:

export interface BotResponseStream extends NodeJS.WritableStream

Extends: NodeJS.WritableStream

Methods

Method Description
startStreaming(statusCode, headers) Starts streaming with the given status code and headers. Must be called before write() to commit the HTTP response.