Chapter 2. Using Hubs
In this chapter, we will cover:
- Adding a method to a Hub and counting the calls to it
- Calling back the caller from a Hub's method
- Broadcasting to all connected clients
- Adding a connection to a group
- Removing a connection from a group
- Broadcasting to all connected clients except the caller
- Broadcasting to all clients except the specified ones
- Broadcasting to all clients in a group except the caller
- Broadcasting from outside a Hub
- Using the return value of a Hub method
Introduction
SignalR's main goal is to deliver a real-time experience over HTTP, where both clients and servers can participate in a conversation as senders and listeners at the same time (known as full-duplex communication). A client initiates the flow by starting a new ...
Get SignalR Real-time Application Cookbook 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.