Additionally: Nochum's comment is concerning, if accurate:
>This is gonna suck since the feature detection will be totally thrown off.
>E.g.:
>if (WebSocket in window) > ...
Additionally: Nochum's comment is concerning, if accurate:
>This is gonna suck since the feature detection will be totally thrown off.
>E.g.:
>if (WebSocket in window) > ...
In Mibbit, the code is something like this:
if(WebSocket in window) {
tryWebsocket();
window.setTimeout(function() {
if (nothingHappened()) useComet()
}, 5*1000);
} else {
useComet();
}
Where comet in this case is keep alive long polling XHR.I find 5*1000 most readable in my source code though.
Feature detection first, connection detection second, then start degrading the transport until all options are exhausted.
From: http://hacks.mozilla.org/2010/12/websockets-disabled-in-fire...
"Once we have a version of the protocol that we feel is secure and stable, we will include it in a release of Firefox – even a minor update release."
I like Chrome's silent updates, but the only real difference between it and Firefox is that Firefox informs the user that the update is being applied. Other than that, I'm not sure what you're referring to.