socket.io-parser
Advanced tools
+1
-6
@@ -252,7 +252,2 @@ | ||
| this.reconstructor = new BinaryReconstructor(packet); | ||
| // no attachments, labeled binary but no binary data to follow | ||
| if (this.reconstructor.reconPack.attachments === 0) { | ||
| this.emit('decoded', packet); | ||
| } | ||
| } else { // non-binary full packet | ||
@@ -325,3 +320,3 @@ this.emit('decoded', packet); | ||
| var n = Number(buf); | ||
| if (!isInteger(n) || n < 0) { | ||
| if (!isInteger(n) || n < 1) { | ||
| throw new Error("Illegal attachments"); | ||
@@ -328,0 +323,0 @@ } else if (n > maxAttachments) { |
+1
-1
| { | ||
| "name": "socket.io-parser", | ||
| "version": "3.3.5", | ||
| "version": "3.3.6", | ||
| "description": "socket.io protocol parser", | ||
@@ -5,0 +5,0 @@ "repository": { |
17749
-0.98%526
-0.75%