Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SignalR

Scott Smith
November 27, 2012

 SignalR

SignalR is an async library for .NET to help build real-time, multi-user interactive web applications. Pushing data from the server to the client (not just browser clients) has always been a tough problem. SignalR makes it dead easy and handles all the heavy lifting for you.

Scott Smith

November 27, 2012
Tweet

More Decks by Scott Smith

Other Decks in Programming

Transcript

  1. Help yourself to food and drink Mix, mingle, and chat

    Thanks to Front Porch for the food, drink, and location Welcome
  2. ASP.NET SignalR is a library for ASP.NET developers that makes

    it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time. Or… A real cool .NET framework hosted in ASP.NET and a JavaScript library (on the client side) that helps build collaborative web apps quickly and painlessly. It is open source and freely available on GitHub. And… It doesn’t have to be hosted in ASP.NET. It can also be hosted using OWIN (Open Web Interface for .NET) or self host (console, windows service, azure, etc.). The JavaScript library isn’t the only client side implementation as well. As of today, there are jQuery, Native .NET, WP7, iOS, Silverlight, WinRT, and Android (via Mono) implementations. What is SignalR?
  3. SignalR can be used to add any sort of "real-time"

    web functionality to your ASP.NET application. While chat is often used as an example, you can do a whole lot more. Any time a user refreshes a web page to see new data, or the page implements Ajax long polling to retrieve new data, is candidate for using SignalR. It also enables completely new types of applications, that require high frequency updates from the server, e.g. real-time gaming. For a great example of this see the ShootR game SignalR abstracts the raw technique of keeping connections open between a client and a server. SignalR uses a fallback mechanism to connect the browser to the server. After an initial negotiation request the following transports are tried in order until a successful connection can be made: WebSockets, Server Sent Events (EventSource), Forever Frame, or Ajax long polling. What does it solve?
  4.  Scott Smith  [email protected]  Blog: http://scottksmith95.wordpress.com/2012/10/30/signalr-awesome-real-time-with-net/  Code:

    https://github.com/scottksmith95/SignalRTutorial  Code: https://github.com/scottksmith95/SignalRTutorial-Part2  Slides: https://speakerdeck.com/u/scottksmith95 Resources