diff --git a/lib/transports/polling.js b/lib/transports/polling.js index 970313ebd..e600af601 100644 --- a/lib/transports/polling.js +++ b/lib/transports/polling.js @@ -145,7 +145,7 @@ Polling.prototype.onData = function (data) { }; // decode payload - parser.decodePayload(data, this.socket.binaryType, callback); + parser.decodePayload(data, this.socket.binaryType, this.supportsBinary, callback); // if an event did not trigger closing if ('closed' !== this.readyState) { diff --git a/package.json b/package.json index 75754fc91..db0415a94 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "component-emitter": "1.2.1", "component-inherit": "0.0.3", "debug": "2.3.3", - "engine.io-parser": "2.0.1", + "engine.io-parser": "2.0.2", "has-cors": "1.1.0", "indexof": "0.0.1", "parsejson": "0.0.3",