lib/ConnectionState.js
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;
}
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;
}
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 ; }
Connection state.

@constructor
@param {Number} code
@param {String} stringId
@param {Boolean} connected
Connection state .