SignalR – Real-time Application Development Second Edition Table of Contents SignalR – Real-time Application Development Second Edition Credits About the Author Acknowledgments About the Reviewers www.PacktPub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for Packt account holders Preface The emperor’s new clothes The good old terminal X Server Remote desktop Rich clients The Web Full duplex on the Web Events Comet Hand-rolling it all Why? Now what? Think different Personal style What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. The Primer Where are we coming from? The terminal Fast forwarding Completing the circle SignalR Terminology Messaging Publish/subscribe Decoupling Patterns Model View Controller Model View ViewModel Libraries and frameworks jQuery ASP.NET MVC 5 AngularJS Twitter Bootstrap Tools Visual Studio 2013 NuGet Summary 2. Persistent Connections Persistent connections – what are they? Where are we going? Getting the project ready Setting up the packages The single page application The “code-behind” Getting started with the server-side Connecting the dots Making the UI light up Summary 3. Hubs Moving up a level The client Decoupling it all The Dependency Inversion Principle Proxies Life cycle events Separation Summary 4. Groups Getting specific with groups Composing the UI Summary 5. State Becoming stateful The client Lifetime event handlers and more Summary 6. Security Locking things down Putting the infrastructure in place HTTP handler config Authentication Securing the hub The great finale Summary 7. Scaling Out It’s all about messages in SignalR Scaling out with SQL Server Scaling out with Redis Scaling out with Azure Creating our own backplane Hooking it all up Summary 8. Building a WPF .NET Client Decoupling it all Decoupling – the next level Building for the desktop Setting up the packages Observables Adding security Adding support for cookies Binding helper Creating a client security service Adding a login view The hub proxy Our chat rooms The chat The composition Summary 9. Write Once, Deploy Many Cross platform Getting started Code signing Preparing for connections Packages MVVM Messenger DelegateCommand Security ChatHub Login ChatRooms Chat The result Summary 10. Monitoring Logging Logging on the server side Logging in the JavaScript client Logging in the .NET client Logging from the Xamarin client Digging deeper into the communication Looking under the cover with Fiddler Performance counters Under the cover, inside the browser Summary 11. Hosting a Server Using Self-hosted OWIN Self-hosting Adding the needed packages Adding the code needed for self-hosting The client Summary Index SignalR – Real-time Application Development Second Edition
Description: