clemos/node-api — pull request #4 by Peekmo (2014-02-12 20:52:07+00:00)
Title: More methodsChildProcess & Cluster + bug fixes on Cluster's events

Hello ! :)

Cluster was not compile (extended classes were not found), and couldn't find Worker class (I add @:native on ClusterWorker). Moreover, I didn't find a way to use events on Cluster master, because I couldn't instanciate it, so I use the same trick as in Mongoose, but that's very dirty.

Using a class in front of Cluster could be a good idea to do this dirty thing on it, or if you have a better idea... :+1:

And I have a question about ClusterWorker : Is there a reason to use "uniqueID" instead of "id" ? Both are in the object, yes, but the documentation talk about "id" (http://nodejs.org/api/cluster.html#cluster_worker_id), so I think that it could be a good thing to use the same variable.

Regards,
Peekmo