import { type RemoteObject } from "https://deno.land/x/rimbu@1.2.0/channel/custom/index.ts";
const { Constructors } = RemoteObject;
Defines the static RemoteObject
API.
Methods
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.