Skip to main content

namespace RpcProxy

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

Companion interface: RpcProxy<T>

Interfaces​

NameDescription
RpcProxy.ConstructorsDefines the static RpcProxy API.

Static Methods​

create​

Returns a new RpcProxy instance, where each exec call will retrieve the proxy execution path and forward the path to the given onCall function.

Definition​

create<T>(onCall: (path: RpcProxy.Path) => Promise<any>): RpcProxy<T>;

Type parameters​

NameDescription
Tthe interface to proxy

Parameters​

NameTypeDescription
onCall(path: RpcProxy.Path) => Promise<any>function that will be called with the execution path each time an operation is performed on the proxy object