docs: 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;
  }