Skip to main content
Module

x/rimbu/channel/mod.ts>RemoteChannelClient

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace RemoteChannelClient
Re-export
import { RemoteChannelClient } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";

Interfaces

Interface defining the confirgartion options for a RemoteChannelClient

Defines the static RemoteChannelClient API.

Interface defining the configuration options for creating a remote Channel.Cross channel

Interface defining the configuration options for creating a remote Channel.Read channel

Interface defining the configuration options for creating a remote Channel.Write channel

interface RemoteChannelClient
Re-export
import { type RemoteChannelClient } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";

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.

Methods

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

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

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

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

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

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

variable RemoteChannelClient
Re-export
import { RemoteChannelClient } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";