cluster-callresp
An easy way to set up "call and response" type messages using node's builtin "cluster" module.
// master.jsvar callresp = // calling callresp just adds another listener
Then in the worker:
// worker.js var callresp = // make a call, and then eventually get a response.// Callback is optional, if you just want to send a message,// but don't care about the response.// Set a 'timeout' property to fail if there's no response in// a specific number of ms. By default, waits forever.