post-me

Home > post-me > Messenger > postMessage

Messenger.postMessage() method

Send a message to the other context

Signature:

postMessage(message: any, transfer?: Transferable[]): void;

Parameters

Parameter Type Description
message any The payload of the message
transfer Transferable[] A list of Transferable objects that should be transferred to the other context instead of cloned.

Returns:

void