Minor update
This commit is contained in:
parent
3f62cd7dfb
commit
4c5d441931
2 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue