Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/channel/custom/remote-channel-server/remote-channel-server.ts>RemoteChannelServer

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace RemoteChannelServer
import { RemoteChannelServer } from "https://deno.land/x/rimbu@1.1.0/channel/custom/remote-channel-server/remote-channel-server.ts";

Interfaces

Defines the static RemoteChannelServer API.

interface RemoteChannelServer
import { type RemoteChannelServer } from "https://deno.land/x/rimbu@1.1.0/channel/custom/remote-channel-server/remote-channel-server.ts";

A RemoteChannel server communicates with a RemoteChannel client through the given message port, and allows clients to easily create new channels to communicate with processes in the server context. The server needs to set up handlers to deal with the created channels.

Properties

readonly
writeChannelCh: Channel.Read<Channel.Write<unknown>>

Channel that will send new write channels requested by the client.

readonly
readChannelCh: Channel.Read<Channel.Read<unknown>>

Channel that will send new read channels requested by the client.

readonly
crossChannelCh: Channel.Read<CrossChannel<unknown, unknown>>

Channel that will send new cross channels requested by the client.

variable RemoteChannelServer
import { RemoteChannelServer } from "https://deno.land/x/rimbu@1.1.0/channel/custom/remote-channel-server/remote-channel-server.ts";