C# dotnet core 6 using SignalR with Blazor — Build a small chat app in minutes!

Spencer Thomason
2 min readJun 30, 2022

--

This tutorial teaches the basics of building a real-time app using SignalR with Blazor.

Learn how to:

  • Create a Blazor project
  • Add the SignalR client library
  • Add a SignalR hub
  • Add SignalR services and an endpoint for the SignalR hub
  • Add Razor component code for chat

At the end of this tutorial, you’ll have a working chat app.

https://github.com/slthomason/StartupHakk

It ultimately depends on the technology you’re building on but in this series, we’ll be working on .Net/.Net CORE. For that, you either want to use Microsoft Visual Studio or Microsoft Visual Studio Code. Both of them can be downloaded for free from the official website for both Windows and macOS.

You can download both of them and see which one suits your needs. In this video, we’ll create a new project and create a simple Hello World application. It can act as a guide to get familiarized with different aspects of visual studio/code such as the solution explorer and properties.

Visual Studio vs Visual Studio Code

You can think of Visual Studio as a cookie-cutter solution that is jampacked with features and functionality. As Visual Studio is much more powerful, it works in most situations out of the box whereas Visual Studio Code can be considered a Lite version of it with lots of addons available which can ultimately make the two nearly identical. Some might even consider it as a “glorified text editor”. In comparison, Visual Studio does require more knowledge to be utilized to its true potential unlike Visual Studio Code which is more beginner-friendly however, Visual Studio does offer more precise control over everything. At the end of the day, it all comes down to personal preference.

--

--