Home > post-me > RemoteHandle
A handle to the other end of the connection
Signature:
export interface RemoteHandle<M extends MethodsType = any, E extends EventsType = any> extends Emitter<E>
Extends: Emitter<E>
Use this handle to:
Call methods exposed by the other end
Add listeners to custom events emitted by the other end
Method | Description |
---|---|
call(methodName, args) | Call a method exposed by the other end. |
customCall(methodName, args, options) | Call a method exposed by the other end. |
setCallTransfer(methodName, transfer) | Specify which parts of the arguments of a given method call should be transferred into the other context instead of cloned. |