Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: NPM package workerproxy (proxy calls to Web Workers made easy) (npmjs.com)
2 points by blixt on June 23, 2015 | hide | past | favorite | 2 comments


Nice work! Something like this which matches up requests and responses (e.g., with an incrementing integer) is absolutely required for using web workers for repeated tasks. Everybody has to solve this problem. I wish it were built in.

One suggestion: add a priority queue in the main thread to allow high priority requests to be processed before low priority.


Example of the package being used to proxy calls to a Web Worker running Lua: http://blixt.nyc/js-luaworker/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: