|
@ -1436,14 +1436,12 @@ function connectToURL(url) { |
|
|
|
|
|
|
|
|
initUrls(url); |
|
|
initUrls(url); |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
'method': 'GET', |
|
|
'method': 'GET', |
|
|
'crossDomain': true, |
|
|
'crossDomain': true, |
|
|
'url': urls.auth.href, |
|
|
'url': urls.auth.href, |
|
|
'xhrFields': { 'withCredentials': true } |
|
|
'xhrFields': { 'withCredentials': true } |
|
|
}).done(function(data) { |
|
|
}).done(function(data) { |
|
|
*/ |
|
|
|
|
|
if (websock) { websock.close(); } |
|
|
if (websock) { websock.close(); } |
|
|
websock = new WebSocket(urls.ws.href); |
|
|
websock = new WebSocket(urls.ws.href); |
|
|
websock.onmessage = function(evt) { |
|
|
websock.onmessage = function(evt) { |
|
@ -1452,11 +1450,9 @@ function connectToURL(url) { |
|
|
processData(data); |
|
|
processData(data); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
/* |
|
|
|
|
|
}).fail(function() { |
|
|
}).fail(function() { |
|
|
// Nothing to do, reload page and retry
|
|
|
// Nothing to do, reload page and retry
|
|
|
}); |
|
|
}); |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|