Supports latest RFC 6455 protocol Chrome for android 18+ Firefox for android 15+ Opera Mobile 12+ TROLOLOL no android browser RFC RFC RFC Tuesday, October 23, 12
&& !$.browser.chrome // and correct webkit version && parseFloat($.browser.version) < 534.54 ) { // don’t use websockets } seal of approval Tuesday, October 23, 12
wrap sends in a setTimeout out to allow the readyState // to be correctly set to closed setTimeout(function () { ws.send("g’day realtimeconf"); }); }; seal of approval Tuesday, October 23, 12
wrap sends in a setTimeout out to allow the readyState // to be correctly set to closed, make this only happen // on mobile devices if (mobile) return setTimeout(function () { ws.send("g’day realtimeconf"); }); ws.send("g’day realtimeconf"); }; seal of approval Tuesday, October 23, 12
to filter out // websuckets if ( ~ua.indexOf('mobile') || ~ua.indexOf('android) || .. and more .. ) { // don't use websuckets } seal of approval Tuesday, October 23, 12
after the page has fully loaded. Capture the event early and try to cancel it, still happening in latest firefox but they are “working” on it Tuesday, October 23, 12
encode and then unescape all messages that contain // utf8, and also user input ws.send(unescape(encodeURIComponent( ))); }; seal of approval Tuesday, October 23, 12
of the unique 100k connections tested enterprise proxies usually block everything except port 80,443,843 and virus scanners usually target port 80 for scanning & blocking port testing Tuesday, October 23, 12
document.documentElement.style; if (indicator) { setTimeout(function () { // creating and removing an iframe is enough to // kill a loading indicator var iframe = document.createElement('iframe'); document.body.appendChild(iframe); document.body.removeChild(iframe); }, 100); } Tuesday, October 23, 12