A simple demonstration of using SignalR for real-time web applications. This project showcases the integration of SignalR in a web application and in a simple console receiver to enable real-time communication between the server and clients.
Before you begin, ensure you have the following installed:
- .NET SDK 9.0
- Your preferred JavaScript runtime
-
Clone the repository:
git clone https://github.com/mmmmmob/signalr-demo.git cd signalr-demo
-
Restore required dependencies and building SignalR server
cd signalR-WebAPI dotnet restore dotnet run
-
If you prefer to see a live demo implemented on React web application, headed to SignalR-WebDemo and install dependencies before running (example code below using NPM)
cd signalR-WebDemo npm install npm run dev
-
There is also a demo on how SignalR working with console application in SignalR-Reciever folder (Yes, it was misspelled...)
cd signalR-Reciever dotnet restore dotnet run
This SignalR demo repository is based on these tutorial articles with some adjustments
- Integrating SignalR with React TypeScript and ASP.NET Core by Round the Code
- Building Real-Time Notifications in .NET Core 8 Minimal APIs using SignalR by Umair Rasheed