node-worker
node-worker copied to clipboard
An implementation of the WebWorker API for node.js
Hi, how does this library compare to node-webworker, does it have any advantages?
E. g. you can't do this: ``` js // app.js var NodeWorker = require("worker").Worker; var worker = new NodeWorker("echo.worker.js"); worker.addListener("message", function (msg) { console.log(msg); }); worker.postMessage("world"); ``` ``` js //...
_Updated pull request that contains alignment fixes, unit tests and usage instructions. Strangely I wasn't able to append the pull request to the existing one._ It'd be incredibly useful to...
Using the default systemwide node executable may not always be desired. This commit allows you to provide an optional path to a node binary to be used.
The example does not work, nothing is printed. (node v0.4.6)
To fix it I had to change line 144 of worker.js from this.child.stdin.end() to this.child.kill()...