lib/Slave.js
/**
 * Returns true if the message is from the master process.
 * @param {Object} m The message to inspect.
 * @return {Boolean} True if the message if from the master, false otherwise.
 */
Returns true if the message is from the master process.
@param {Object} m The message to inspect.
@return {Boolean} True if the message if from the master, false otherwise.
Returns true if the message is from the master process . @param { Object } m The message to inspect . @return { Boolean } True if the message if from the master false otherwise .
function isMasterMessage(m) {
  return typeof m === 'object'
    && typeof m.rid === 'number'
    && m.title === 'MasterIOMessage'
    && typeof m.for === 'number'
    && typeof m.command === 'string'
    && typeof m.secretNumber === 'number'
    && typeof m.secretId === 'string';
}
function isMasterMessage ( m ) { return typeof m === 'object' && typeof m . rid === 'number' && m . title === 'MasterIOMessage' && typeof m . for === 'number' && typeof m . command === 'string' && typeof m . secretNumber === 'number' && typeof m . secretId === 'string' ; }
Returns true if the message is from the master process.
Returns true if the message is from the master process .