Home > post-me > Messenger > postMessage
Send a message to the other context
Signature:
postMessage(message: any, transfer?: Transferable[]): void;
| 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