
Best way to call client methods in a Hub class This is a common way to call a client-side method via SignalR: public class WebHub : Hub { … public async Task SomeMethod(string something) { //Calls CheckItOut method in all Clients and passes string parameter ‘something’ await Clients.All.SendAsync(“CheckItOut”, something); } … } Although, you can see such practice in many…