In today's tutorial, you will learn how to install SignalR with Episerver.

First, you need to install two Nuget packages, right-click on your solution, select 'Manage Nuget Packages for a solution...', from your search type in SignalR


You will also need to install, 'Microsoft.Owin.Host.SystemWeb':


To make SignalR work you need to register it, in an OwinStartup class:

To register your Owin Startup class to load, you need to decorate it with the OwinStartup attribute, by registering the class, as seen above.  This code won't fire unless you make sure you have the following in your web.config, make sure you have the following app setting section otherwise your OwinStartup start-up class won't fire.

The next step you'll need to add a 'Hub' class.

This is the basic skeleton code and set-up that you need to get up and running with SignalR. The next step is to start adding custom logic into the hub and then using the SignalR Javascript library to register the client with the server so it can push messages to it and pull notifications from it

For reference the following Javascript includes will be required in your HTML in order for SignalR to work.