Communication & Background

BroadcastChannel

Probing…

BroadcastChannel is a web platform capability in the Communication & Background category. Message all same-origin tabs and workers. Supported in Chromium 54+, Firefox 38+, and Safari 15.4+.

Try it

Loading demo…

Code

const ch = new BroadcastChannel('demo-channel')
ch.onmessage = e => console.log('received', e.data)
ch.postMessage('hello other tabs')
// later
ch.close()

Browser support

Chromium
54
Firefox
38
Safari
15.4

Frequently asked questions

Which browsers support BroadcastChannel?

Supported in Chromium 54+, Firefox 38+, and Safari 15.4+.

Does BroadcastChannel require HTTPS?

No. BroadcastChannel works without a secure context, though serving your site over HTTPS is always recommended.

What is BroadcastChannel used for?

Message all same-origin tabs and workers.

Can I try BroadcastChannel in my browser?

Yes. shwcs.net runs a live BroadcastChannel demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗