How to set up SignalR in your ASP.NET Core 3.1 project. Install the Microsoft.AspNetCore.SignalR NuGet package: Create a Hubs folder in your project, and create MySignalRHub.cs inside of it: Update MySignalRHub.cs like so: Use dependency injection to access your DbContext (or …