docs: function(consoleService, opts) {
    EventEmitter.call(this);
    this.reqId = 1;
    this.idMap = {};
    this.msgMap = {};
    this.typeMap = {};
    this.clients = {};
    this.sockets = {};
    this.slaveMap = {};
    this.server = null;
    this.callbacks = {};
    this.state = ST_INITED;
    this.whitelist = opts.whitelist;
    this.consoleService = consoleService;
  }