Skip to content

serveStream

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

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

Serve protocol 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.

Parameter Type
protocol Protocol
options ServeStreamOptions

Promise<void>