import { type RemoteChannel } from "https://deno.land/x/rimbu@1.2.0/channel/custom/index.ts";
const { Constructors } = RemoteChannel;
Defines the static RemoteChannel
API.
Methods
createRead<T = void>(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.ReadConfig): Promise<Channel.Read<T>>
Resolves to a new read-only RemoteChannel using the given configuration.
createWrite<T = void>(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.WriteConfig): Promise<Channel.Write<T>>
Resolves to a new write-only RemoteChannel using the given configuration.
createCross<TSend = void, TReceive = TSend>(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.CrossConfig): Promise<CrossChannel<TSend, TReceive>>
Resolves to a new cross-channel RemoteChannel using the given configuration.