Summary

Exposing our functionality through hubs makes it easier to consume on the client, at least on JavaScript based clients, due to the proxy generation. It basically brings it to the client as if it was on the client. With the hub, you also get the ability to call the client from the server in a more natural manner. We've also seen how focused and more maintainable our code gets in the client. One of the things often important for applications is the ability to filter out messages so you only get messages relevant for your context. In the next chapter, groups will cover this; groups is the technique used in SignalR to accomplish this.

Get SignalR - Real-time Application Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.