Book Image

SignalR: Real-time Application Development - Second Edition

By : Einar Ingerbrigsten
Book Image

SignalR: Real-time Application Development - Second Edition

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (19 chapters)
SignalR – Real-time Application Development Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
11
Hosting a Server Using Self-hosted OWIN
Index

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.

  1. Start by creating a new project in Visual Studio:

  2. 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:

  3. 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. For our...