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

x/rimbu/channel/custom/remote-object/remote-object.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.1.0/channel/custom/remote-object/remote-object.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.