postMessage method

void postMessage(
  1. JSAny? message
)

The postMessage() method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any with the same . The message is transmitted as a BroadcastChannel.message_event event targeted at each BroadcastChannel bound to the channel.

Implementation

external void postMessage(JSAny? message);