Appendix B. Insights

In this appendix, we will cover the following topics:

  • Transport strategies
  • Asynchronous programming and SignalR

Transport strategies

As briefly mentioned a couple of times in this book, when a connection is started, SignalR chooses a transport strategy to provide the logical persistent connection on top of which every feature we described is made available. SignalR decides which strategy to use according to the environment it runs on. The connection process starts with a traditional HTTP connection, and from there the available options are checked in sequence until the best available option is determined and used.

The first two strategies checked are based on HTML5 and are as follows:

  • WebSocket: This is an HTML5-related protocol ...

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.