...

/

Making SignalR Hub Strongly Typed

Making SignalR Hub Strongly Typed

Learn to make SignalR Hub strongly typed.

We'll cover the following...

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 is that it can contain any arbitrary text. If we misspell the name, the code will not warn us. Perhaps, it’s not a big problem in our case because we only have one such call, so it’s easy to manage. But what if we had a complex Hub ...