postMessage method

void postMessage(
  1. JSAny? message, [
  2. JSObject optionsOrTransfer
])

The postMessage() method of the MessagePort interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.

Implementation

external void postMessage(
  JSAny? message, [
  JSObject optionsOrTransfer,
]);