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

x/rimbu/channel/main/index.ts>RemoteChannel.ReadConfig

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface RemoteChannel.ReadConfig
import { type RemoteChannel } from "https://deno.land/x/rimbu@1.2.0/channel/main/index.ts";
const { ReadConfig } = RemoteChannel;

Interface defining the read configuration for a RemoteChannel.

Properties

channelId: string

An ID used for the client and server to connect the correct channels to each other.

optional
validator: (value: any) => boolean

A function taking a message and returning true if the message is of a valid type, false otherwise

optional
maxHandshakeAttempts: number

The amount of handshake attempts to make before failing.

optional
handshakeAttemptTimeoutMs: number

The amount of milliseconds to wait for a reponse to each handshake.