Home > post-me > RemoteHandle > call
Call a method exposed by the other end.
Signature:
call<K extends keyof M>(methodName: K, ...args: Parameters<M[K]>): 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 | 
Returns:
Promise<InnerType<ReturnType<M[K]>>>
A Promise of the value returned by the method