docs.rodeo

MDN Web Docs mirror

BroadcastChannel

{{APIRef("Broadcast Channel API")}}  {{AvailableInWorkers}} 

The BroadcastChannel interface represents a named channel that any {{glossary("browsing context")}}  of a given {{glossary("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 {{domxref("BroadcastChannel/message_event", "message")}}  event fired at all BroadcastChannel objects listening to the channel, except the object that sent the message.

{{InheritanceDiagram}} 

Constructor

Instance properties

This interface also inherits properties from its parent, {{domxref("EventTarget")}} .

Instance methods

This interface also inherits methods from its parent, {{domxref("EventTarget")}} .

Events

This interface also inherits events from its parent, {{domxref("EventTarget")}} .

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN