Skip to main content
Module

x/rimbu/channel/mod.ts>RemoteObject.Constructors

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

Defines the static RemoteObject API.

Methods

getter
Error(): RemoteObjectError

Object containing the possible remote object errors.

createClient<T>(commCh: RemoteObject.ClientCrossChannel): RpcProxy<T>

Returns a new RpcProxy that can be used to perform remote operations on a RemoteObject server.

createServer<T>(source: T, commCh: RemoteObject.ServerCrossChannel): Promise<void>

Creates a remote object server that allows clients to perform remote operations on the given source object.