Skip to main content

interface RpcProxy<T>

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

Companion namespace: RpcProxy

Type parameters

NameDescription
Tundocumented

Methods

exec

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

Definition

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

Type parameters

NameDescription
Rthe result type of executing the function on the proxy object

Parameters

NameTypeDescription
remoteFn(proxy: RpcProxy.Unpromise<T>) => Ra function that receives a proxy object, and will remotely perform the actions performed on the proxy on the actual object.