Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b01e16 commit afa871bCopy full SHA for afa871b
test/socket.io.js
@@ -597,6 +597,23 @@ describe('socket.io', function(){
597
});
598
599
600
+
601
+ it('should not reuse same-namespace connections', function(done){
602
+ var srv = http();
603
+ var sio = io(srv);
604
+ var connections = 0;
605
606
+ srv.listen(function() {
607
+ var clientSocket1 = client(srv);
608
+ var clientSocket2 = client(srv);
609
+ sio.on('connection', function() {
610
+ connections++;
611
+ if(connections === 2) {
612
+ done();
613
+ }
614
+ });
615
616
617
618
619
describe('socket', function(){
0 commit comments