Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Automattic/socket.io
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 30, 2015
2 parents 94157e6 + 0935b81 commit 58eaeca
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/socket.io.js
Expand Up @@ -597,6 +597,23 @@ describe('socket.io', function(){
});
});
});

it('should not reuse same-namespace connections', function(done){
var srv = http();
var sio = io(srv);
var connections = 0;

srv.listen(function() {
var clientSocket1 = client(srv);
var clientSocket2 = client(srv);
sio.on('connection', function() {
connections++;
if(connections === 2) {
done();
}
});
});
});
});

describe('socket', function(){
Expand Down

0 comments on commit 58eaeca

Please sign in to comment.