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
Name | Description |
---|---|
RpcProxy.Constructors | Defines 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.
create
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
Name | Description |
---|---|
T | the interface to proxy |
Parameters
Name | Type | Description |
---|---|---|
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 |