Skip to content

Commit

Permalink
Merge pull request socketio#2063 from kapouer/patch-1
Browse files Browse the repository at this point in the history
Let adapter.add find connected socket
  • Loading branch information
rauchg committed Apr 11, 2015
2 parents d0d3822 + 4254099 commit 3f72dd3
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 @@ -277,9 +277,9 @@ Socket.prototype.leaveAll = function(){

Socket.prototype.onconnect = function(){
debug('socket connected - writing packet');
this.nsp.connected[this.id] = this;
this.join(this.id);
this.packet({ type: parser.CONNECT });
this.nsp.connected[this.id] = this;
};

/**
Expand Down

0 comments on commit 3f72dd3

Please sign in to comment.