Interface RpcProtocolOptions

Initialization options for a RpcProtocol.

interface RpcProtocolOptions {
    decoder?: RpcMessageDecoder;
    encoder?: RpcMessageEncoder;
    mode?: "default" | "clientOnly" | "serverOnly";
}

Properties

The message decoder that should be used. If undefined the default RpcMessageDecoder will be used.

The message encoder that should be used. If undefined the default RpcMessageEncoder will be used.

mode?: "default" | "clientOnly" | "serverOnly"

The runtime mode determines whether the RPC protocol is bi-directional (default) or acts as a client or server only.