Home > post-me > ChildHandshake
Initiate the handshake from the Child side
Signature:
export declare function ChildHandshake<M extends MethodsType>(messenger: Messenger, localMethods?: M): Promise<Connection>;
Parameter | Type | Description |
---|---|---|
messenger | Messenger | The Messenger used to send and receive messages from the other end |
localMethods | M | The methods that will be exposed to the other end |
Returns:
Promise<Connection>
A Promise to an active Connection to the other end