socket: fix send message unshifting

This commit is contained in:
Guillermo Rauch
2012-12-18 15:11:53 -03:00
parent 8eb209e0cc
commit bea30df54a

View File

@@ -82,7 +82,7 @@ Socket.prototype.connect = function(){
Socket.prototype.send = function(){
var args = toArray(arguments);
args.shift('message');
args.unshift('message');
this.emit.apply(this, args);
return this;
};