post-me

Home > post-me > ChildHandshake

ChildHandshake() function

Initiate the handshake from the Child side

Signature:

export declare function ChildHandshake<M extends MethodsType>(messenger: Messenger, localMethods?: M): Promise<Connection>;

Parameters

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