lib/worker.js
function(err, commandName, config, resultFunction) {
      //max Number in javascript is 9,007,199,254,740,992.  At 10,000 requests per second, that is 28,561 years until we get an overflow on messageId
      messageId += 1;
      messageStack[messageId] = resultFunction;
      
      //tell the parent process to run the command
      process.send({id: messageId, err: err, commandName: commandName, config: config});
    }
function(err, commandName, config, resultFunction) {
      //max Number in javascript is 9,007,199,254,740,992.  At 10,000 requests per second, that is 28,561 years until we get an overflow on messageId
      messageId += 1;
      messageStack[messageId] = resultFunction;
      
      //tell the parent process to run the command
      process.send({id: messageId, err: err, commandName: commandName, config: config});
    }
function ( err , commandName , config , resultFunction ) { //max Number in javascript is 9,007,199,254,740,992.  At 10,000 requests per second, that is 28,561 years until we get an overflow on messageId messageId += 1 ; messageStack [ messageId ] = resultFunction ; //tell the parent process to run the command process . send ( { id : messageId , err : err , commandName : commandName , config : config } ) ; }
define a function for the webserver to call when it receives a command
define a function for the webserver to call when it receives a command