From 10034e89aa5a26fbf378b34458b5bea4e77d0670 Mon Sep 17 00:00:00 2001 From: Denys Khanzhiyev Date: Fri, 30 Nov 2012 16:49:47 +0200 Subject: [PATCH] Update lib/namespace.js https://github.com/LearnBoost/socket.io/issues/1093#issuecomment-10889859 --- lib/namespace.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/namespace.js b/lib/namespace.js index 3c538a77c..3a636994c 100644 --- a/lib/namespace.js +++ b/lib/namespace.js @@ -176,8 +176,11 @@ case 'event': var params = [packet.name].concat(packet.args); - if (packet.ack == 'data') + if (packet.ack == 'data') { params.push(ack); + } else if (packet.ack) { + this.packet({ type: 'ack', ackId: packet.id }); + } this.$emit.apply(this, params); break;