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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
readable | ReadableStream<Uint8Array<ArrayBufferLike>> |
writable | PipeWritable |
options? | PipeConnectOptions |