BroadcastChannel interface represents a named channel that any browsing context of a given origin can subscribe to. It allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin. Messages are broadcasted via a
message event fired at all
BroadcastChannel objects listening to the channel.
EventHandler property that specifies the function to execute when a
message event is fired on this object.
Closes the channel object, indicating it won't get any new messages, and allowing it to be, eventually, garbage collected.