Chapter 3. Using the JavaScript Hubs Client API

In this chapter, we will cover:

  • 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

Introduction

Now, it's time to move our attention to the client side of SignalR. We've already written the client-side code in the previous chapters and briefly described the steps we needed to build fully working recipes; however, we never went into the details. Nevertheless, the client portion of any SignalR application is as necessary and important as the server counterpart. Here, we'll explore how a SignalR client really works and concentrate ...

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.