##// END OF EJS Templates
If websocket connection failed, fallback to JS update
neko259 -
r1163:2e21d394 default
parent child Browse files
Show More
@@ -63,7 +63,10 b' function connectWebsocket() {'
63 centrifuge.on('error', function(error_message) {
63 centrifuge.on('error', function(error_message) {
64 console.log("Error connecting to websocket server.");
64 console.log("Error connecting to websocket server.");
65 console.log(error_message);
65 console.log(error_message);
66 return false;
66 console.log("Using javascript update instead.");
67
68 // If websockets don't work, enable JS update instead
69 enableJsUpdate()
67 });
70 });
68
71
69 centrifuge.on('connect', function() {
72 centrifuge.on('connect', function() {
General Comments 0
You need to be logged in to leave comments. Login now