This commit is contained in:
Aaron Kimbrell
2026-03-26 09:56:29 -05:00
parent 8372202d8f
commit f658da19a3
27 changed files with 1669 additions and 685 deletions

View File

@@ -129,6 +129,14 @@ function connectWebSocket() {
event: 'subscribe',
subscription: 'dashboard_update'
}));
// Mark connection as ready for other handlers
wsConnectionReady = true;
// Initialize real-time table manager
if (typeof realtimeManager !== 'undefined') {
realtimeManager.Initialize();
}
document.getElementById('connection-status')?.remove();
};
@@ -147,6 +155,12 @@ function connectWebSocket() {
if (data.event === 'dashboard_update') {
updateDashboard(data);
}
// Route to generic realtime handler for all table updates
if (typeof realtimeManager !== 'undefined') {
realtimeManager.HandleMessage(data);
}
} catch (error) {
console.error('Error parsing WebSocket message:', error);
}