Skip to content

pipeConnect

function pipeConnect(
readable,
writable,
options?): RpcClient;

Defined in: src/client/pipe.ts:399

Connect to a vgi-rpc server over a raw bidirectional pipe (a readable stream of server output plus a writable for client input). The connection is single-threaded: only one call or stream may be in flight at a time. The __describe__ handshake is sent before the reader is opened to avoid deadlock.

ParameterType
readableReadableStream<Uint8Array<ArrayBufferLike>>
writablePipeWritable
options?PipeConnectOptions

RpcClient