A lightweight JSON RPC client & server
Home > async-call-rpc > CallbackBasedChannel
This interface represents a “callback” model.
Signature:
export interface CallbackBasedChannel<Data = unknown> extends Partial<EventBasedChannel<Data>>
Extends: Partial<EventBasedChannel<Data>>
Usually used for there are many remotes (act like a server). Example: Example for CallbackBasedChannel
Method | Description |
---|---|
setup(jsonRPCHandlerCallback, isValidJSONRPCPayload) | Setup the CallbackBasedChannel. |