Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 717 Bytes

async-call-rpc.eventbasedchannel.md

File metadata and controls

25 lines (15 loc) · 717 Bytes

Home > async-call-rpc > EventBasedChannel

EventBasedChannel interface

This interface represents a "on message"-"send response" model.

Signature:

export interface EventBasedChannel<Data = unknown> 

Remarks

Usually used for there is only 1 remote (act like a client).

Methods

Method Description
on(listener) Register the message listener.
send(data) Send the data to the remote side.