Making SignalR Hub Strongly Typed
Explore how to create strongly typed SignalR hubs by defining client event interfaces in ASP.NET Core. Learn to replace string-based client calls with interface methods to avoid misspellings and enhance code safety, ensuring your hub communication is both reliable and strongly typed.
Problem
So far, when we’ve been calling clients from the hub, we've used just a normal string to specify the client-side event name that needs to be triggered. But the problem with using a string ...