File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/PerfProblemSimulator/wwwroot/js Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,13 @@ async function initializeSignalR() {
6565 } ) ;
6666
6767 // Register message handlers
68+ // Note: SignalR uses camelCase for method names by default
6869 state . connection . on ( 'ReceiveMetrics' , handleMetricsUpdate ) ;
70+ state . connection . on ( 'receiveMetrics' , handleMetricsUpdate ) ;
6971 state . connection . on ( 'SimulationStarted' , handleSimulationStarted ) ;
72+ state . connection . on ( 'simulationStarted' , handleSimulationStarted ) ;
7073 state . connection . on ( 'SimulationCompleted' , handleSimulationCompleted ) ;
74+ state . connection . on ( 'simulationCompleted' , handleSimulationCompleted ) ;
7175
7276 // Start connection
7377 try {
@@ -355,7 +359,7 @@ async function allocateMemory() {
355359 const response = await fetch ( `${ CONFIG . apiBaseUrl } /memory/allocate-memory` , {
356360 method : 'POST' ,
357361 headers : { 'Content-Type' : 'application/json' } ,
358- body : JSON . stringify ( { sizeInMegabytes : sizeMb } )
362+ body : JSON . stringify ( { sizeMegabytes : sizeMb } )
359363 } ) ;
360364
361365 if ( response . ok ) {
You can’t perform that action at this time.
0 commit comments