BroadcastChannelBaseline · Widely available
The BroadcastChannel API allows you to send messages between same-origin browsing contexts, such as between the same page loaded in multiple tabs.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 14, 2022. Widely available since Sep 14, 2024.
Browser support
DesktopChrome
1–53Not supported
54+Supportedsince Oct 12, 2016
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–37Not supported
38+Supportedsince May 12, 2015
Current: 157Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27MobileChrome Android
18–53Not supported
54+Supportedsince Oct 19, 2016
Current: 155Firefox Android
4–37Not supported
38+Supportedsince May 12, 2015
Current: 157Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
JS
// Every tab on the same origin that opens this channel gets the message
const channel = new BroadcastChannel("auth");
channel.postMessage({ type: "logout" });
channel.onmessage = (e) => {
if (e.data.type === "logout") location.assign("/login");
};Feature detection
JS · check before using
if ("BroadcastChannel" in globalThis) {
// BroadcastChannel is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (7). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| BroadcastChannel | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |
| BroadcastChannel.BroadcastChannel | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |
| BroadcastChannel.close | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |
| BroadcastChannel.message_event | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |
| BroadcastChannel.messageerror_event | 60 | 79 | 57 | 15.4 | 60 | 57 | 15.4 |
| BroadcastChannel.name | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |
| BroadcastChannel.postMessage | 54 | 79 | 38 | 15.4 | 54 | 38 | 15.4 |