Chapter 6. Handling Connections

In this chapter, we will cover the following recipes:

  • Controlling the lifetime of a connection
  • Handling a connection transient state
  • Establishing a cross-domain connection

Introduction

After having analyzed most of the features SignalR exposes to enable us to add real-time messaging features to our applications, we move into a different set of useful characteristics we can exploit to control our application. In particular, we'll have a deeper look at a bunch of APIs we can leverage to control different aspects concerning the connections we establish across clients and servers. In fact, SignalR works across networks, which we all know we cannot fully trust, and over HTTP, which imposes certain rules when dealing with ...

Get SignalR Real-time Application Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.