Fix hybiparser bug. The translation to java done by @codebutler had a reversed logic error. Original code:

    if (this.FRAGMENTED_OPCODES.indexOf(this._opcode) < 0 && !this._final)
      return this._socket.close(this.ERRORS.protocol_error, null, false);

Node that indexof < 0 is not the same as contains. It is !contains.