Fix real-time chart updates by correcting function name mismatch in WebSocket event handlers
This commit is contained in:
@@ -676,7 +676,7 @@ function initializeRealtimeUpdates() {
|
||||
// Simulation progress updates
|
||||
socket.on('simulation_progress', function(data) {
|
||||
debugLog('Received real-time progress update');
|
||||
updateSimulationProgress(data);
|
||||
onSimulationProgress(data);
|
||||
});
|
||||
|
||||
// Simulation completion
|
||||
@@ -721,7 +721,7 @@ function startFallbackPolling() {
|
||||
|
||||
if (response.latest_snapshot) {
|
||||
// Simulate progress update
|
||||
updateSimulationProgress({
|
||||
onSimulationProgress({
|
||||
iteration: response.latest_snapshot.iteration,
|
||||
total_wealth: response.latest_snapshot.total_wealth,
|
||||
gini_coefficient: response.latest_snapshot.gini_coefficient,
|
||||
|
Reference in New Issue
Block a user