Fixed GetServerState method - removed old debug code.
This commit is contained in:
parent
9c7f5cb21a
commit
96f10416ff
|
@ -10,11 +10,7 @@ namespace TrafficLightsSignalR.Hubs
|
|||
|
||||
public async Task GetServerState(string connectionId)
|
||||
{
|
||||
Debug.WriteLine("ServerBroadcast called...");
|
||||
string currentState = _stateService.GetCurrentTrafficLightState().CurrentSimulationTime;
|
||||
State stateTemplate = new();
|
||||
Debug.WriteLine($"Retrieved state: {currentState}");
|
||||
await Clients.Client(connectionId).SendAsync("ReceiveStructuredMessage", stateTemplate);
|
||||
await Clients.Client(connectionId).SendAsync("ReceiveServerState", _stateService.GetCurrentTrafficLightState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue