Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/channel/custom/index.ts>RemoteChannelBase

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

Properties

protected
instanceId: number | undefined
protected
otherInstanceId: number | undefined
abstract
readonly
initialized: Promise<void>

Methods

protected
postMessage<T extends RemoteChannelBase.MessageTypes>(type: T, message: Omit<RemoteChannelBase.MessageFormat & { type: T; },
| "type"
| "channelId"
| "sourceInstanceId"
| "targetInstanceId"
>
): void
protected
receiveMessage<T extends RemoteChannelBase.MessageTypes>(type: T, options?: { filter?: (data: RemoteChannelBase.MessageFormat & { type: T; }) => boolean; timeoutMs?: number; signal?: AbortSignal; }): Promise<RemoteChannelBase.MessageFormat & { type: T; }>