code: function ConnectionState(code, stringId, connected) {
    if (arguments.length === 2) {
      connected = stringId;
      stringId = 'NONAME';
    }
    if (!(this instanceof ConnectionState)) {
      return new ConnectionState(code, stringId, connected);
    }
  
    this.id = stringId;
    this.code = code;
    this.connected = connected;
  }
docs: Connection state.
  
  @constructor
  @param {Number} code
  @param {String} stringId
  @param {Boolean} connected