Callback function, when is set by emit, called only once, despite that many ack packages may appear. That's because it's deleted immediately after its first call in Socket.prototype.onack:
Socket.prototype.onack=function(packet){varack=this.acks[packet.id];if('function'==typeofack){debug('calling ack %s with %j',packet.id,packet.data);ack.apply(this,packet.data);deletethis.acks[packet.id];// <- Callback is deleted here for some reason.}else{debug('bad ack %s',packet.id);}};
Callback function, when is set by emit, called only once, despite that many ack packages may appear. That's because it's deleted immediately after its first call in
Socket.prototype.onack: