meysamhadeli / chat-signalr-sample

A chat application base on SignalR in .net 7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A chat application base on SignalR in .net 7

License:MIT License


Languages

Language:C# 62.0%Language:HTML 29.6%Language:CSS 8.4%