Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/channel/custom/remote-channel/remote-channel-impl.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/remote-channel/remote-channel-impl.ts";
class RemoteChannelBase
Abstract
import { RemoteChannelBase } from "https://deno.land/x/rimbu@1.2.1/channel/custom/remote-channel/remote-channel-impl.ts";

Constructors

new
RemoteChannelBase(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.ReadConfig)

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; }>