Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lighting Up Real-time Web Communications with SignalR

Similar presentations


Presentation on theme: "Lighting Up Real-time Web Communications with SignalR"— Presentation transcript:

1 Lighting Up Real-time Web Communications with SignalR
Jon Galloway | Technical Evangelist Brady Gaster | Program Manager, Azure SDK & Tools

2 02 | SignalR on the Web Jon Galloway | Technical Evangelist
Brady Gaster | Program Manager, Azure SDK & Tools

3 Using SignalR in New ASP.NET Web Applications
SignalR is included in the Visual Studio 2013 ASP.NET templates NuGet Install the SignalR and/or SignalR JS packages OWIN Wire up SignalR using OWIN in the Startup.cs file HTML Include jQuery & SignalR jQuery Plugin in HTML Hubs Create a SignalR Hub through which clients can communicate

4 Using SignalR in Existing ASP.NET Web Applications
SignalR is distributed as numerous NuGet packages, one of which provides the JavaScript client NuGet Install the SignalR and/or SignalR JS packages OWIN Wire up SignalR using OWIN in the Startup.cs file HTML Include jQuery & SignalR jQuery Plugin in HTML Hubs Create a SignalR Hub through which clients can communicate

5 Wire up SignalR using OWIN

6 Include the jQuery Scripts
Note – the order is important!

7 Create a Hub

8 Connect the client to the Hub using JavaScript

9 Installing SignalR into an Existing ASP.NET App

10 Using SignalR with AngularJS
Jon Galloway | Technical Evangelist Brady Gaster | Program Manager, Azure SDK & Tools

11 Connect the client to the Hub using JavaScript
Hubs are wrapped by Angular factories Multiple controllers can make use of a single factory Angular factories are created as singletons All controllers can share single-instance Hub proxies

12 Using SignalR and AngularJS Together

13 Building a Real-world Angular/SignalR App

14 Enabling Authorization with SignalR
Jon Galloway | Technical Evangelist Brady Gaster | Program Manager, Azure SDK & Tools

15 Allowing Authorized Users Only

16 Controlling Access by Role

17 Controlling Access to Specific Users

18 Inbound is restricted, but outbound is open

19 Requiring Authorization to Access Hubs

20 Let’s all participate in an interactive demo together

21 From Where are You Watching?

22 Calling SignalR from ASP.NET Server-side Code

23 Resources Title URL Authentication & Authorization for SignalR Hubs

24 Next Section: SignalR on the Client
Jon Galloway | Technical Evangelist Brady Gaster | Program Manager, Azure SDK & Tools

25


Download ppt "Lighting Up Real-time Web Communications with SignalR"

Similar presentations


Ads by Google