https://github.com/meysamhadeli/chat-signalr-sample
A chat application base on SignalR in .net 7
https://github.com/meysamhadeli/chat-signalr-sample
dotnet dotnet-core dotnetcore signalr web-socket web-sockets websocket websockets
Last synced: 6 months ago
JSON representation
A chat application base on SignalR in .net 7
- Host: GitHub
- URL: https://github.com/meysamhadeli/chat-signalr-sample
- Owner: meysamhadeli
- License: mit
- Created: 2023-07-22T15:50:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T21:20:31.000Z (about 2 years ago)
- Last Synced: 2025-02-10T07:44:20.108Z (8 months ago)
- Topics: dotnet, dotnet-core, dotnetcore, signalr, web-socket, web-sockets, websocket, websockets
- Language: C#
- Homepage:
- Size: 947 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.# Table of Contents
- [Technologies - Libraries](#technologies---libraries)
- [How to Run](#how-to-run)
- [Build](#build)
- [Run](#run)## Technologies - Libraries
- ✔️ **[`.NET 7`](https://dotnet.microsoft.com/download)** - .NET Framework and .NET Core, including ASP.NET and ASP.NET Core
- ✔️ **[`SignalR`](https://github.com/SignalR/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)
```bash
dotnet build Application1/Application1.csproj
```#### Application 2 - Web App (Server)
```bash
dotnet build Application2/Application2.csproj
```> ### Run
To run each project separately use the following command in the root directory:
#### Application 1 - Desktop App (Client)
```bash
dotnet run --project Application1/Application1.csproj
```#### Application 2 - Web App (Server)
```bash
dotnet run --project Application2/Application2.csproj
```## License
This project is made available under the MIT license. See [LICENSE](https://github.com/meysamhadeli/chat-signalr-sample/blob/main/LICENSE) for details.