Module
x/async_call_rpc/docs/async-call-rpc.callbackbasedchannel.md
A lightweight JSON RPC client & server
Home > async-call-rpc > CallbackBasedChannel
CallbackBasedChannel interface
This interface represents a “callback” model.
Signature:
export interface CallbackBasedChannel<Data = unknown> extends Partial<EventBasedChannel<Data>>
Extends: Partial<EventBasedChannel<Data>>
Remarks
Usually used for there are many remotes (act like a server).
Example
[Example for CallbackBasedChannel](https://github.com/Jack-Works/async-call-rpc/blob/master/utils-src/web/websocket.client.ts).
Methods
Method | Description |
---|---|
setup(jsonRPCHandlerCallback, isValidJSONRPCPayload) | Setup the CallbackBasedChannel.. |