Skip to content

meysamhadeli/chat-signalr-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-signalr-sample

  • In this app we use SignalR library for realtime communication between client and server with signalR hub, and it uses web socket under the hood. And in this project application 2 is our server and application 1 is our client.
  • We can have multiple instance for our client (application 1) and all of our instance can comminate with our server.
  • SignalR has a scalable mechanism for server and we can scale our server for handling high load traffic.

Open in Gitpod

Table of Contents

Technologies - Libraries

  • ✔️ .NET 7 - .NET Framework and .NET Core, including ASP.NET and ASP.NET Core
  • ✔️ SignalR - Real-time web functionality for web apps, including server-side push

How to Run

Build

To build each project separately use the following command in the root directory:

Application 1 - Desktop App (Client)

dotnet build Application1/Application1.csproj

Application 2 - Web App (Server)

dotnet build Application2/Application2.csproj

Run

To run each project separately use the following command in the root directory:

Application 1 - Desktop App (Client)

dotnet run --project Application1/Application1.csproj

Application 2 - Web App (Server)

dotnet run --project Application2/Application2.csproj

License

This project is made available under the MIT license. See LICENSE for details.