loading... Pacem JS

BroadcastChannel Proxy

PacemBroadcastChannelProxyElement establishes a communication channel among elements targeting the same 'channelName' (wraps BroadcastChannel API available in modern browsers).

Here an example for the utilization:

<pacem-broadcastchannel-proxy id="proxy" channel-name="world" message="Hello, World (Channel)!" autosend="true" on-receive="console.log($event.detail)"></pacem-broadcastchannel-proxy>