This project is a simple chat application built using ASP.NET Core SignalR and Blazor. Users can communicate with other users, join specific rooms and engage in group chats.
When the application starts, users can join chat rooms by selecting a username on the main page. They can then join different rooms and chat with other users.
SignalRChatRoom.mp4
The server application is built with ASP.NET Core using .NET 8, while the client application is developed using Blazor Web App also with .NET 8. This application was developed for the purpose of learning SignalR. SignalR is an open-source library that enables real-time functionality in web applications using WebSocket technology. Data is stored in memory, but you have the option to enhance the project by adding support for a database and incorporating various functionalities. If you wish to move communication with clients outside of the hub, you can utilize the IHubContext interface. Essentially, this interface allows us to use the SignalR architecture outside of 'Hub' classes, thereby enabling interaction between clients and servers from different places such as controllers, classes, etc.
-
Clone the project:
git clone https://github.com/BetulTugce/SignalRChatRoom.git
-
Navigate to the project directory:
cd SignalRChatRoom
-
Run the project:
Right-click on the solution and select
Configure Startup Projects
. In the opened window, selectMultiple startup projects
, mark SignalRChatRoom.Client and SignalRChatRoom.Server projects asStart
, then clickOK
and pressF5
to run the project.
- Blazor.Bootstrap v2.0.0
- Microsoft.AspNetCore.SignalR.Client v8.0.2
If you encounter any issues or have feedback while using the project, feel free to create an issue on GitHub. Moreover, if you wish to support or contribute to the project, you can do so by starring the GitHub repository or making contributions to the codebase.