更新时间:2021-07-16 12:03:08
coverpage
SignalR Real-time Application Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Understanding the Basics
Introduction
Adding a Hub to an ASP.NET project
Adding a Hub to a self-hosting application
Connecting to a Hub from a JavaScript client
Connecting to a Hub from a .NET application
Chapter 2. Using Hubs
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
Chapter 3. Using the JavaScript Hubs Client API
Starting a Hub connection
Setting up connection transport strategies
Calling a server-side Hub method
Adding a client-side method on the proxy and calling it from the server
Managing errors across a complex asynchronous workflow
Chapter 4. Using the .NET Hubs Client API
Chapter 5. Using a Persistent Connection
Adding and registering a persistent connection
Sending messages from the server
Sending messages to the server
Exchanging messages between a server and a JavaScript client
Exchanging messages between a server and a .NET client
Chapter 6. Handling Connections
Controlling the lifetime of a connection
Handling a connection transient state
Establishing a cross-domain connection
Chapter 7. Analyzing Advanced Scenarios
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
Chapter 8. Building Complex Applications
Implementing a room-based chat application
Implementing a shared whiteboard
Implementing a real-time map of flying airplanes
Implementing a "pets finder" application
Implementing a custom backplane
Implementing a real-time error notification system
Appendix A. Creating Web Projects
Creating an empty ASP.NET web application
Creating an ASP.NET web forms application
Creating an ASP.NET MVC application
Creating an MVC controller and a related view
Creating an ASP.NET website
Appendix B. Insights
Transport strategies
Asynchronous programming and SignalR
Index