Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f1ac9 commit 27dada6Copy full SHA for 27dada6
lib/socket.js
@@ -293,6 +293,10 @@ Socket.prototype.onpacket = function(packet){
293
this.onack(packet);
294
break;
295
296
+ case parser.BINARY_ACK:
297
+ this.onack(packet);
298
+ break;
299
+
300
case parser.DISCONNECT:
301
this.ondisconnect();
302
@@ -336,9 +340,11 @@ Socket.prototype.ack = function(id){
336
340
if (sent) return;
337
341
var args = Array.prototype.slice.call(arguments);
338
342
debug('sending ack %j', args);
343
344
+ var type = hasBin(args) ? parser.BINARY_ACK : parser.ACK;
339
345
self.packet({
346
id: id,
- type: parser.ACK,
347
+ type: type,
348
data: args
349
});
350
};
0 commit comments