Home > async-call-rpc > EventBasedChannel
This interface represents a "on message"-"send response" model.
Signature:
export interface EventBasedChannel<Data = unknown>
Usually used for there is only 1 remote (act like a client).
Method | Description |
---|---|
on(listener) | Register the message listener. |
send(data) | Send the data to the remote side. |