pgriess / node-webworker

A WebWorkers implementation for NodeJS
BSD 3-Clause "New" or "Revised" License
646 stars 84 forks source link

node-webworker and node 0.8.x #42

Open rgermano opened 12 years ago

rgermano commented 12 years ago

Hello

Are there any plans to get node-webworker running on node 0.8.x? I'm currently getting the following error on node 0.8.0 and webworker 0.8.4. Is the cluster module a correct replacement for webworkers? Thanks!

/Users/rgermano/node_modules/webworker/lib/webworker.js:35 var netBinding = process.binding('net'); ^ Error: No such module at Object. (/Users/rgermano/node_modules/webworker/lib/webworker.js:35:26) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/rgermano/iG/workspaces/cms/git/iGCMS_EdicaoHomes/lib/publicacao/controle.js:10:14) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10)

mikeatlas commented 12 years ago

It looks like netBinding isn't used anyways.

rgerard commented 12 years ago

+1. I'm also having this issue.

Nishchal commented 12 years ago

Better to use Child processes spawned using the require('child-process') rather than the node-webworker implementation, since there are some changes on the latest node. So I think unless the node-webworker is updated it would be wise to use either the "fork, spawn" methods to do the work.

adambom commented 11 years ago

+1