Search⌘ K
AI Features

Sending Messages to Other Clients

Explore how to send messages to specific clients or groups in SignalR by utilizing connection IDs. Learn to modify hubs and clients to target individual connections, enhancing real-time communication in your ASP.NET Core applications.

Overview

SignalR Hub has a property called Context. This property represents the context of the current connection and contains some metadata related to it. For example, if we are connecting as an authenticated user, we'll be able to get user information from this property.

One of the properties of Context is called ConnectionId. This is ...