Book description
Use SignalR to create real-time, bidirectional, and asynchronous applications based on standard web technologies
In Detail
SignalR is a recent addition to ASP.NET, which allows you to add real-time functionalities to your applications. SignalR enables bidirectional communication between client and server over HTTP, transparently, and ensures you're always provided with the experience of a persistent connection.
SignalR Real-time Application Cookbook is a practical, hands-on guide that provides a number of clear step-by-step recipes that will gradually enable you to add SignalR as an innovative, effective, and useful item in your toolbox. This book will move from simple examples on to complex use cases, going through a comprehensive overview of the library. Other than helping out with the common tasks, at the end of the book you will find a set of ready-made solutions for more complex scenarios.
What You Will Learn
- Teach you how to build SignalR servers
- Illustrate SignalR clients built with both the JavaScript and the .NET client libraries
- Demonstrate both the Hubs API and the Persistent Connection API
- Demystify the lifetime of a connection
- Explain how to authorize requests
- Scale up and scale out your SignalR applications
- Enable you to handle errors efficiently
- Extend SignalR with custom services
- Solve complex real-time scenarios with the help of advanced, ready-made examples
Table of contents
-
SignalR Real-time Application Cookbook
- Table of Contents
- SignalR Real-time Application Cookbook
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Understanding the Basics
-
2. Using Hubs
- Introduction
- Adding a method to a Hub and counting the calls to it
- Calling back the caller from a Hub's method
- Broadcasting to all connected clients
- Adding a connection to a group
- Removing a connection from a group
- Broadcasting to all connected clients except the caller
- Broadcasting to all clients except the specified ones
- Broadcasting to all clients in a group except the caller
- Broadcasting from outside a Hub
- Using the return value of a Hub method
- 3. Using the JavaScript Hubs Client API
- 4. Using the .NET Hubs Client API
- 5. Using a Persistent Connection
- 6. Handling Connections
-
7. Analyzing Advanced Scenarios
- Introduction
- Generating static files for JavaScript proxies
- Authorizing requests on a Hub
- Authorizing requests on a persistent connection
- Authorizing requests in a self-hosting context
- Scaling up
- Scaling out with Azure
- Scaling out with Redis
- Scaling out with SQL Server
- Establishing proxy-less connections
- Introducing dependency injection (simple approach)
- Introducing dependency injection (advanced approach)
- Using dependency injection to replace a default behavior
- Extending the Hub pipeline
- Handling errors
- 8. Building Complex Applications
- A. Creating Web Projects
- B. Insights
- Index
Product information
- Title: SignalR Real-time Application Cookbook
- Author(s):
- Release date: April 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783285952
You might also like
book
SignalR - Real-time Application Development - Second Edition
A fast-paced guide to develop, test, and deliver real-time communication in your .Net applications using SignalR …
book
Pro ASP.NET SignalR: Real-Time Communication in .NET with SignalR 2.1
ASP.NET SignalR is the new solution to real-time communication between servers and clients in .NET. Use …
book
ASP.NET Core MVC 2.0 Cookbook
Learn to implement ASP.NET Core features to build effective software that can be scaled and maintained …
book
Real-Time Web Application Development : With ASP.NET Core, SignalR, Docker, and Azure
Design, develop, and deploy a real-world web application by leveraging modern open source technologies. This book …