Protected
Readonly
cancellationReadonly
channelProtected
Readonly
decoderProtected
Readonly
encoderProtected
Readonly
modeProtected
nextProtected
Readonly
onProtected
Readonly
pendingProtected
Readonly
pendingReadonly
requestProtected
toStatic
Readonly
CANCELLATION_Protected
disposeProtected
handleProtected
handleOptional
id: numberProtected
handleProtected
handleProtected
handle
Establish a RPC protocol on top of a given channel. By default the rpc protocol is bi-directional, meaning it is possible to send requests and notifications to the remote side (i.e. acts as client) as well as receiving requests and notifications from the remote side (i.e. acts as a server). Clients can get a promise for a remote request result that will be either resolved or rejected depending on the success of the request. Keeps track of outstanding requests and matches replies to the appropriate request Currently, there is no timeout handling for long running requests implemented. The bi-directional mode can be reconfigured using the RpcProtocolOptions to construct an RPC protocol instance that acts only as client or server instead.