josdejong / workerpool

Offload tasks to a pool of workers on node.js and in the browser
Apache License 2.0
2.04k stars 148 forks source link

Webworker implementation does not handle on message callbacks. #438

Closed w1nklr closed 4 months ago

w1nklr commented 4 months ago

I tried to reproduce the example of sending back data from the worker to the pool (from the doc https://github.com/josdejong/workerpool#events), in a browser environment (ie. with web workers):

https://codesandbox.io/p/sandbox/workerpool-in-a-react-project-forked-dgjxxc

The example demonstrates 2 issues:

josdejong commented 4 months ago

Thanks for reporting and implementing a fix in #439.

josdejong commented 4 months ago

Fixed in v9.1.1

w1nklr commented 4 months ago

Yea, I saw that. Thank's a lot.