Benchmarking Issues #514

Closed
thebigredgeek opened this Issue Jan 17, 2013 · 2 comments

Projects

None yet

3 participants

For some reason, when I do this:

var connect = function(){
    return io.connect('127.0.0.1:81',{reconnect:false});
};


for(var i = 0; i<=1000; i++){
    setTimeout(function(){
        connect();
    },1000);
}

It only shows on the actual server receiving a single connection. Is there a reason this would happen?

I was actually trying to achieve the same thing today. It turned out that I found the 'force new connection' option which seems to fix your issue (and mine btw) var socket = io.connect('http://localhost:3333/', {'force new connection': true});. Though it doesn't seem to be documented anywhere, so I'm unsure if it's really supported or not.

Contributor
rauchg commented Jan 19, 2013

It's definitely supported. In 1.0 I'm renaming it to multiplex: false

On Sat, Jan 19, 2013 at 1:09 PM, Alexis Daboville
notifications@github.comwrote:

I was actually trying to achieve the same thing today. It turned out that
I found the 'force new connection' option which seems to fix your issue
(and mine btw) var socket = io.connect('http://localhost:3333/', {'force
new connection': true});. Though it doesn't seem to be documented
anywhere, so I'm unsure if it's really supported or not.


Reply to this email directly or view it on GitHubhttps://github.com/LearnBoost/socket.io-client/issues/514#issuecomment-12461228.

Guillermo Rauch
LearnBoost CTO
http://devthought.com

@rauchg rauchg closed this Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment