ipc-messenger.js
function(pack) {
    if (cluster.isMaster) {
      if (pack.toWorkers === true) {
        for (var key in cluster.workers) {
          cluster.workers[key].send(pack)
        }
      }
    }
    else {
      if (pack.toMaster === true || pack.toWorkers === true) {
        process.send(pack)
      }
    }
  }
function(pack) {
    if (cluster.isMaster) {
      if (pack.toWorkers === true) {
        for (var key in cluster.workers) {
          cluster.workers[key].send(pack)
        }
      }
    }
    else {
      if (pack.toMaster === true || pack.toWorkers === true) {
        process.send(pack)
      }
    }
  }
function ( pack ) { if ( cluster . isMaster ) { if ( pack . toWorkers === true ) { for ( var key in cluster . workers ) { cluster . workers [ key ] . send ( pack ) } } } else { if ( pack . toMaster === true || pack . toWorkers === true ) { process . send ( pack ) } } }
Common function called to send messages to other processes
Common function called to send messages to other processes