mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-11 18:45:34 +00:00
UI - Realtime - Add realtime warning to page if server goes offline
This commit is contained in:
@@ -55,6 +55,7 @@ $(document).ready(function () {
|
||||
|
||||
// Connection status logging
|
||||
socket.on('connect', function () {
|
||||
$('#realtime-conn-error').hide();
|
||||
console.log('Socket.IO connected with path:', socketio_url);
|
||||
console.log('Socket transport:', socket.io.engine.transport.name);
|
||||
bindSocketHandlerButtonsEvents(socket);
|
||||
@@ -74,7 +75,8 @@ $(document).ready(function () {
|
||||
|
||||
socket.on('disconnect', function (reason) {
|
||||
console.log('Socket.IO disconnected, reason:', reason);
|
||||
$('.ajax-op').off('.socketHandlerNamespace')
|
||||
$('.ajax-op').off('.socketHandlerNamespace');
|
||||
$('#realtime-conn-error').show();
|
||||
});
|
||||
|
||||
socket.on('queue_size', function (data) {
|
||||
|
||||
Reference in New Issue
Block a user