Getting the project ready
Our project will have a server component to it; the server component will also be hosting the web client that we will be using.
- Start by creating a new project in Visual Studio:
- Select the regular empty ASP.NET Web Application project template situated under Visual C# | Web. Give it a name:
SignalRChat
. Make sure Add Application Insights to Project is unchecked. Then, click on OK: - Select the Empty template and make sure Host in the cloud is left unchecked. Then, click on OK:
Setting up the packages
Now, we will need some packages to get things started. This process is described in detail in Chapter 1, The Primer. Let's start off with adding SignalR, which is our primary framework that we will be working with to move on. We will be pulling this using NuGet, as described in Chapter 1, The Primer; right-click on References in Solution Explorer and select Manage NuGet Packages, and type Microsoft.AspNet.SignalR
in the Search panel. Select this and click on Install...