ElectronMessagePortMain.postMessage method
ElectronMessagePortMain › postMessage
Unofficial
Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.Signature:
postMessage(message: unknown, transfer?: ElectronMessagePortMain[] | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| message | unknown | The message to send. |
| transfer? | ElectronMessagePortMain[] | undefined | Message ports whose ownership is transferred with the message. |
Returns: void