Home > post-me > RemoteHandle > customCall
Call a method exposed by the other end.
Signature:
customCall<K extends keyof M>(methodName: K, args: Parameters<M[K]>, options?: CallOptions): Promise<InnerType<ReturnType<M[K]>>>;
Parameter | Type | Description |
---|---|---|
methodName | K | The name of the method |
args | Parameters<M[K]> | The list of arguments passed to the method |
options | CallOptions | The CallOptions to customize this method call |
Returns:
Promise<InnerType<ReturnType<M[K]>>>
A Promise of the value returned by the method