A lightweight JSON RPC client & server
Home > async-call-rpc > AsyncCallOptions > channel
The message channel to exchange messages between server and client
Signature:
channel: CallbackBasedChannel<EncodedRequest | EncodedResponse> | EventBasedChannel<EncodedRequest | EncodedResponse> | Promise<CallbackBasedChannel<EncodedRequest | EncodedResponse> | EventBasedChannel<EncodedRequest | EncodedResponse>>;
Example for CallbackBasedChannel or Example for EventBasedChannel