C# .NET CORE 6 with SignalR — Simple SignalR project — SignalR is better than NodeJS!

Spencer Thomason
2 min readJun 21, 2022

--

This is our series about Coding for Entrepreneurs! I am a firm believer that even if you aren’t the one doing the coding in your organization, that learning to code will help you to more effectively manage your team and your product! So I think every Entrepreneur should learn to code!

This tutorial teaches the basics of building a real-time app using SignalR. You learn how to:

  • Create a web project.
  • Add the SignalR client library.
  • Create a SignalR hub.
  • Configure the project to use SignalR.
  • Add code that sends messages from any client to all connected clients.

At the end, you’ll have a working chat app:

Sample code for the project:

https://github.com/slthomason/StartupHakk/tree/main/05_SignalR_With_Javascript_Core

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.

--

--