Thruput TypeScript protocol bindings
    Preparing search index...

    Interface RpcTransport

    ONC-RPC transport abstraction.

    ONC-RPC (RFC 5531) sends XDR-encoded call/reply messages over a reliable transport. The provided implementation is WebSocket-based (browsers, Cloudflare Workers, Node.js).

    interface RpcTransport {
        call(requestBytes: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
        close(): void;
    }

    Implemented by

    Index

    Methods

    Methods

    • Send an ONC-RPC call and receive the reply bytes.

      Parameters

      • requestBytes: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Close the underlying transport and reject or discard pending calls.

      Returns void