mirror of https://github.com/calzoneman/sync.git
Minor update
This commit is contained in:
parent
3f62cd7dfb
commit
4c5d441931
|
@ -20,7 +20,7 @@
|
|||
"oauth": "^0.9.12",
|
||||
"q": "^1.0.1",
|
||||
"serve-static": "^1.5.3",
|
||||
"socket.io": "Automattic/socket.io#5863903",
|
||||
"socket.io": "^1.1.0",
|
||||
"yamljs": "^0.1.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1106,11 +1106,12 @@ try {
|
|||
throw false;
|
||||
}
|
||||
|
||||
var opts = { transports: ["websocket", "polling"] };
|
||||
if (IO_URL === IO_URLS["ipv4-ssl"] || IO_URL === IO_URLS["ipv6-ssl"]) {
|
||||
opts.secure = true;
|
||||
socket = io(IO_URL, { secure: true });
|
||||
} else {
|
||||
socket = io(IO_URL);
|
||||
}
|
||||
socket = io(IO_URL, opts);
|
||||
setupCallbacks();
|
||||
} catch (e) {
|
||||
if (e) {
|
||||
|
|
Loading…
Reference in New Issue