moo

Is SignalR still the best way to do real-time push notifications?

The SignalR subreddit is pretty dead, which makes me cautious. If I want to push data to clients as soon as it’s calculated, is SignalR still the way to go? It seems to have benefits over polling a REST endpoint.If so, does anyone know the best practice for separating your logic from the SignalR hub? My instinct is to make my hub like a controller where all it does is call a “handler” class with my logic. Should I do that and inject a HubContext wherever I want to send data to clients? Or should I keep all my logic in the hub and have a backend service that sends data via the Hub endpoints? via /r/dotnet https://ift.tt/oEw6QyJ

Categories: funny, photos