File: Hubs\ChatHub.cs
Web Access
Project: src\playground\signalr\SignalRWeb\SignalRWeb.csproj (SignalRWeb)
using Microsoft.AspNetCore.SignalR;
 
public class ChatHub : Hub
{
    public async Task SendMessage(string user, string message)
    {
        await Clients.All.SendAsync("ReceiveMessage", user, message);
    }
}