code: function(opts) {
    EventEmitter.call(this);
    this.reqId = 1;
    this.opts = opts;
    this.id = opts.id;
    this.socket = null;
    this.callbacks = {};
    this.type = opts.type;
    this.info = opts.info;
    this.state = ST_INITED;
    this.consoleService = opts.consoleService;
  }
docs: 60 seconds 
  MonitorAgent Constructor
  
  @class MasterAgent
  @constructor
  @param {Object} opts construct parameter
  opts.consoleService {Object} consoleService
  opts.id             {String} server id
  opts.type           {String} server type, 'master', 'connector', etc.
  opts.info           {Object} more server info for current server, {id, serverType, host, port}
  @api public