Sending Messages to Specific Clients
Explore how to send messages directly to the client that initiated a request using SignalR in ASP.NET Core. This lesson guides you through implementing the Caller property, setting up client-side events, and testing message delivery limited to specific clients for effective real-time communication.
Overview
In the previous section, we learned to send SignalR messages to all the connected clients except the sender. Now, we'll do the opposite. We'll send messages only back to the sender. The built-in property on the Clients property of the Hub base class allows us to do this. It’s called Caller.
We would want to send a ...