Home > post-me > ParentHandshake
Initiate the handshake from the Parent side
Signature:
export declare function ParentHandshake<M0 extends MethodsType>(messenger: Messenger, localMethods?: M0, maxAttempts?: number, attemptsInterval?: number): Promise<Connection>;
| Parameter | Type | Description | 
|---|---|---|
| messenger | Messenger | The Messenger used to send and receive messages from the other end | 
| localMethods | M0 | The methods that will be exposed to the other end | 
| maxAttempts | number | The maximum number of handshake attempts | 
| attemptsInterval | number | The interval between handshake attempts | 
Returns:
Promise<Connection>
A Promise to an active Connection to the other end