LearnBoost/websocket.io — Issue #14: Server crashes when a client sends exactly 2^16 bytes binary data
Author: kazuyukitanimura
Created: 2011-12-08 18:40:05+00:00
State: open

Is it supposed to be ">=" instead of ">" at line 189 in lib/protocols/ hybi-16.js ?

The error message that I got follows. Once I corrected the line manually in node_modules, it worked.
Thanks

assert.js:104
throw new assert.AssertionError({
^
AssertionError: value is larger than maximum value for type
at verifuint (buffer.js:821:10)
at writeUInt16 (buffer.js:859:5)
at Buffer.writeUInt16BE (buffer.js:876:3)
at WebSocket.frame (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/node_modules/websocket.io/lib/protocols/hybi-16.js:205:20)
at WebSocket.write (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/node_modules/websocket.io/lib/protocols/hybi-16.js:150:20)
at WebSocket.send (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/node_modules/websocket.io/lib/socket.js:88:8)
at WebSocket. (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/websocket.io-app.js:25:16)
at WebSocket.emit (events.js:67:17)
at WebSocket.onMessage (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/node_modules/websocket.io/lib/socket.js:76:8)
at Receiver. (/Users/kazuyukitanimura/Documents/git/websocket.io-binaryTransferBenchmark/node_modules/websocket.io/lib/protocols/hybi-16.js:43:12)