SignalR

Real-time two-way messaging between server and browsers.

What is SignalR?

SignalR adds real-time, two-way communication (over WebSockets when possible), so the server can push updates like chat messages or live scores to browsers.

public class ChatHub : Hub
{
    public Task Send(string message) => Clients.All.SendAsync("received", message);
}

app.MapHub<ChatHub>("/chat");

Level: Freelancer · More ASP.NET Core terms at this level

Updated