mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
socket: fix send message unshifting
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user