Skip to content

serveStream

function serveStream(target, options): Promise<void>;

Defined in: src/serve-stream.ts:42

Serve target over the provided readable/writable until the readable ends. Thin wrapper over VgiRpcServer.serveConnection. Resolves on clean EOF; rejects on a real protocol/transport error.

target is a bare Protocol, or a VgiRpcServer carrying additional protocols – the same host object every other transport accepts.

Parameter Type
target | Protocol | VgiRpcServer
options ServeStreamOptions

Promise<void>