Optimized signalR messaging ( send messages only when there are changes )
Added broadcast method to send data to new clients
This commit is contained in:
@@ -71,10 +71,10 @@ namespace Step.Database.Controllers
|
||||
private bool GetIfFunctionalityIsActive(List<FunctionalityModel> functionalityList, int id, bool functionAccessIsEnabled)
|
||||
{
|
||||
// If id is not mapped or function is false by database config return
|
||||
if (id == 0 || !functionAccessIsEnabled)
|
||||
if (id == -1 || !functionAccessIsEnabled)
|
||||
return functionAccessIsEnabled;
|
||||
// Return PLC data
|
||||
return functionalityList[id - 1].IsActive;
|
||||
return functionalityList[id].IsActive;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user