Skip to main content
Module

x/rimbu/channel/mod.ts>RpcProxy

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

Interfaces

Defines the static RpcProxy API.

Type Aliases

The RpcProxy error type

An RPC call path, consisting of an array of path parts

A part of an RPC call path, which can be either:

  • a string indicating an object property/method
  • an array of data indicating a function call with the array as arguments

Utility type to transform an object/API with potentially asynchronous calls into a synchronous one. This is used to allow RPC calls to act as though they are synchronous, but have only the resulting return type be asynchronous.

interface RpcProxy
Re-export
import { type RpcProxy } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";

A remote procedure call proxy that can be used to perform methods on a remote object as though it is accessible locally.

Methods

exec<R>(remoteFn: (proxy: RpcProxy.Unpromise<T>) => R): Promise<R>

Remotely executes the method/access performed on the provided proxy object, and resolves, when succesful, the result of the operation.

variable RpcProxy
Re-export
import { RpcProxy } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";