Skip to main content

interface RemoteChannelClient

A RemoteChannelClient allows creating channels to communicate with a RemoteChannelServer. The server should be configured to listen to channels with the channel ids provided to the channel creation functions in the client.

Companion namespace: RemoteChannelClient

Methods​

createCross​

Resolves, if successful, to a new remote cross channel.

Definition​

createCross<TSend = void, TReceive = TSend>(config: RemoteChannelClient.CrossChannelConfig): Promise<CrossChannel<TSend, TReceive>>;

Type parameters​

NameDefaultDescription
TSendvoidthe send message type
TReceiveTSendthe receive message type

Parameters​

NameTypeDescription
configRemoteChannelClient.CrossChannelConfigthe remote channel configuration

createRead​

Resolves, if successful, to a new remote read channel.

Definition​

createRead<T>(config: RemoteChannelClient.ReadChannelConfig): Promise<Channel.Read<T>>;

Type parameters​

NameDescription
Tthe channel message type

Parameters​

NameTypeDescription
configRemoteChannelClient.ReadChannelConfigthe remote channel configuration

createWrite​

Resolves, if successful, to a new remote write channel.

Definition​

createWrite<T>(config: RemoteChannelClient.WriteChannelConfig): Promise<Channel.Write<T>>;

Type parameters​

NameDescription
Tthe channel message type

Parameters​

NameTypeDescription
configRemoteChannelClient.WriteChannelConfigthe remote channel configuration