i want get total employees number by signalR
but i can't doit
i add signalR on my project asp core
create Hub > dashboardHub
//////////////////////////////
Create dasjboard.js
///////////////
Create index.cshtml
//////////////
i want get total employees number by signalR
but i can't doit
i add signalR on my project asp core
create Hub > dashboardHub
//////////////////////////////
Create dasjboard.js
///////////////
Create index.cshtml
//////////////




UPDATE
Dashboard.cshtml
Test Result
Since
empTotals.Count()is of typeint, we can't iterate over it with$.each().And I also write a demo for you to send num and obj to signalr client side.
Here is the sample code
Hub.cs
Test Result