loading... Pacem JS

WebWorker Proxy

PacemWebWorkerProxyElement establishes a communication channel between the main thread and a WebWorker.

Here an example for the utilization:

<pacem-webworker-proxy id="proxy" src="/path/to/worker.js" message="sent" autosend="true" on-receive="console.log($event.detail)"></pacem-webworker-proxy>