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
Name | Description |
---|---|
T | undocumented |
Methods
exec
Remotely executes the method/access performed on the provided proxy object, and resolves, when succesful, the result of the operation.
exec
Definition
exec<R>(remoteFn: (proxy:
RpcProxy.Unpromise
<T>) => R): Promise<R>;
Type parameters
Name | Description |
---|---|
R | the result type of executing the function on the proxy object |
Parameters
Name | Type | Description |
---|---|---|
remoteFn | (proxy: RpcProxy.Unpromise <T>) => R | a function that receives a proxy object, and will remotely perform the actions performed on the proxy on the actual object. |