observable-webworkers
v2.0.1
Published
A way to eavesdrop on Web Worker messages
Downloads
62,949
Readme
observable-webworkers
Allow you to listen to messages emitted by web workers
Install
$ npm install --save observable-webworkers
Usage
const observe = require('observable-webworkers')
const worker = new Worker('my-worker-script.js')
observe(worker)
observe.addEventListener('message', (worker, event) => {
console.info(event.data)
})