import { RemoteChannelBase } from "https://deno.land/x/rimbu@1.1.0/channel/custom/index.ts";
import { RemoteChannelBase } from "https://deno.land/x/rimbu@1.1.0/channel/custom/index.ts";
Constructors
new
RemoteChannelBase(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.ReadConfig)Methods
protected
postMessage<T extends RemoteChannelBase.MessageTypes>(type: T, message: Omit<RemoteChannelBase.MessageFormat & { type: T; }, | "type"
| "channelId"
| "sourceInstanceId"
| "targetInstanceId"
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; }>