UI - Realtime - Add realtime warning to page if server goes offline

This commit is contained in:
dgtlmoon
2025-06-04 10:46:32 +02:00
parent d7e24f64a5
commit 5c391fbcad
4 changed files with 22 additions and 1 deletions

View File

@@ -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) {