Skip to main content
BroadcastChannel.postMessage - Messaging - Web documentation
method BroadcastChannel.postMessage
BroadcastChannel.postMessage(message: any): void

Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.

Parameters

message: any

Return Type

void