O'Reilly logo

ASP.NET MVC 4 Mobile App Development by Andy Meadows

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Real-time recipe updates

Within our BrewHow mobile app, it would be nice to receive notifications of new recipe additions when we are looking at the recipe list. To accomplish this, we will use the Hub mechanism provided by the SignalR framework to accomplish real-time notification of additions to the BrewHow recipe collection.

Installing and configuring SignalR

SignalR, like most modern .NET frameworks, is available as a NuGet package: Microsoft.AspNet.SignalR. We can install the package by entering the following into the Package Manager console:

Install-Package Microsoft.AspNet.SignalR

In addition to several assembly references to our project, the SignalR package also adds a new JavaScript file: jquery.signalR-1.1.2.min.js—your version may vary ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required