“Broadcast Channel MDN” Código de respuesta

Broadcast Channel MDN

// Example of sending of a very simple message
bc.postMessage('This is a test message.');
Homely Heroin

Broadcast Channel MDN

// Connection to a broadcast channel
const bc = new BroadcastChannel('test_channel');
Homely Heroin

Broadcast Channel MDN

// A handler that only logs the event to the console:
bc.onmessage = function (ev) { console.log(ev); }
Homely Heroin

Respuestas similares a “Broadcast Channel MDN”

Preguntas similares a “Broadcast Channel MDN”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código