Skip to content

Commit

Permalink
socket: fix Socket#ack
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 18, 2012
1 parent 1b98649 commit 7ff88f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Socket.prototype.onevent = function(packet){
* @api private
*/

Socket.prototype.ack = function(){
Socket.prototype.ack = function(id){
var self = this;
var sent = false;
return function(){
Expand All @@ -245,6 +245,7 @@ Socket.prototype.ack = function(){
debug('sending ack %j', args);
self.packet({
type: parser.ACK,
id: id,
data: args
});
};
Expand Down

0 comments on commit 7ff88f8

Please sign in to comment.