Setting up SignalR
In this section, we will build a simple chat application using SignalR. The chat application will allow users to send messages to a public chat room. The messages will be broadcast to all connected clients. This application contains four projects:
ChatApp.Server: This is the ASP.NET Core web API project that provides a SignalR hubChatApp.TypeScriptClient: This is a client application written in TypeScriptChatApp.BlazorClient: This is a client application written in Blazor, which is a web framework for building client-side applications using C#
Important note
The code of this sample is based on the official SignalR sample provided by Microsoft. You can find the original source code at the sample.
The ChatApp.Server application is a simple ASP.NET Core web API application that is used to provide a SignalR hub. A SignalR hub is a class...