Introduction

Learn to set up a project for SignalR server.

We'll cover the following

Overview

This chapter will show you how to set up a web application project and add server-side SignalR dependencies. We’ll cover the most fundamental components of SignalR and explain how the library works.

The chapter consists of the following topics:

  • Getting started with SignalR.
  • Setting up SignalR Hub.
  • Making SignalR hub strongly typed.

By the end of the chapter, we'll have learned how to enable SignalR in an ASP.NET core application. We'll focus on an MVC application. However, the principles taught in this chapter will be universally applicable to other types of ASP.NET core applications, including Razor Pages and Web API.

Setting up the environment

The two main things that you'll need in order to be able to follow the examples from this course are a software development kit (SDK) for .NET 6 and a code editor that is compatible with C#. Since the environment is pre-established on the Educative platform, you don't need to do any installation.