Skip to content

Commit

Permalink
socket: fix event packet
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 18, 2012
1 parent c929f8c commit a0020bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Socket.prototype.emit = function(ev){
} else {
// set up packet object
var args = Array.prototype.slice.call(arguments);
var packet = { type: parser.EVENT, args: args };
var packet = { type: parser.EVENT, data: args };

// access last argument to see if it's an ACK callback
if ('function' == typeof args[args.length - 1]) {
Expand Down

0 comments on commit a0020bc

Please sign in to comment.