Minor update

This commit is contained in:
calzoneman 2014-10-24 10:30:23 -05:00
parent 3f62cd7dfb
commit 4c5d441931
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@
"oauth": "^0.9.12", "oauth": "^0.9.12",
"q": "^1.0.1", "q": "^1.0.1",
"serve-static": "^1.5.3", "serve-static": "^1.5.3",
"socket.io": "Automattic/socket.io#5863903", "socket.io": "^1.1.0",
"yamljs": "^0.1.5" "yamljs": "^0.1.5"
} }
} }

View File

@ -1106,11 +1106,12 @@ try {
throw false; throw false;
} }
var opts = { transports: ["websocket", "polling"] };
if (IO_URL === IO_URLS["ipv4-ssl"] || IO_URL === IO_URLS["ipv6-ssl"]) { if (IO_URL === IO_URLS["ipv4-ssl"] || IO_URL === IO_URLS["ipv6-ssl"]) {
opts.secure = true;
socket = io(IO_URL, { secure: true }); socket = io(IO_URL, { secure: true });
} else {
socket = io(IO_URL);
} }
socket = io(IO_URL, opts);
setupCallbacks(); setupCallbacks();
} catch (e) { } catch (e) {
if (e) { if (e) {