// Connect to a channel
const bc = new BroadcastChannel("test_channel");
// More operations (like postMessage, …)
// When done, disconnect from the channel
bc.close();BroadcastChannel: close() method / notebook
BroadcastChannel: close() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.