Update to socket.io 1.0

This commit is contained in:
calzoneman 2014-08-19 22:57:28 -05:00
parent 12804d1052
commit 6e0735f3fe
4 changed files with 21 additions and 42 deletions

View file

@ -1106,17 +1106,10 @@ try {
throw false;
}
if (NO_WEBSOCKETS || USEROPTS.altsocket) {
var i = io.transports.indexOf("websocket");
if (i >= 0) {
io.transports.splice(i, 1);
}
}
if (IO_URL === IO_URLS["ipv4-ssl"] || IO_URL === IO_URLS["ipv6-ssl"]) {
socket = io.connect(IO_URL, { secure: true });
socket = io(IO_URL, { secure: true });
} else {
socket = io.connect(IO_URL);
socket = io(IO_URL);
}
setupCallbacks();
} catch (e) {