ngx-web-worker
ngx-web-worker copied to clipboard
How to use this web worker to receive websocket and send?
I see that it returns a promise of the function,
const promise = this._webWorkerService.run(this.someCPUHeavyFunction, input);
promise.then(result => console.log(result));
How can I use a worker to receive a websocket and send the received information back?