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
|
// Simulation progress updates
|
||||||
socket.on('simulation_progress', function(data) {
|
socket.on('simulation_progress', function(data) {
|
||||||
debugLog('Received real-time progress update');
|
debugLog('Received real-time progress update');
|
||||||
updateSimulationProgress(data);
|
onSimulationProgress(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Simulation completion
|
// Simulation completion
|
||||||
@@ -721,7 +721,7 @@ function startFallbackPolling() {
|
|||||||
|
|
||||||
if (response.latest_snapshot) {
|
if (response.latest_snapshot) {
|
||||||
// Simulate progress update
|
// Simulate progress update
|
||||||
updateSimulationProgress({
|
onSimulationProgress({
|
||||||
iteration: response.latest_snapshot.iteration,
|
iteration: response.latest_snapshot.iteration,
|
||||||
total_wealth: response.latest_snapshot.total_wealth,
|
total_wealth: response.latest_snapshot.total_wealth,
|
||||||
gini_coefficient: response.latest_snapshot.gini_coefficient,
|
gini_coefficient: response.latest_snapshot.gini_coefficient,
|
||||||
|
Reference in New Issue
Block a user