canal de transmissão MDN
// Example of sending of a very simple message
bc.postMessage('This is a test message.');
Homely Heroin
// Example of sending of a very simple message
bc.postMessage('This is a test message.');
// Connection to a broadcast channel
const bc = new BroadcastChannel('test_channel');
// A handler that only logs the event to the console:
bc.onmessage = function (ev) { console.log(ev); }