Chapter 2. Persistent Connections

For years in network programming, we have been using sockets and communicating with these. Although we now have sockets on the Web as well, we are not guaranteed that we will have it in all environments. We, therefore, need an abstraction that helps us out with this and picks the right transport mechanism for us. In comes persistent connections. This chapter will cover the basics of getting a client connected to the server and how the messaging works.

In this chapter, the following topics will be covered:

  • Getting started with single-page applications
  • Getting started with AngularJS
  • Setting up a web application with SignalR
  • Exposing a persistent connection on the server
  • Consuming the connection in a JavaScript client ...

Get SignalR - Real-time Application Development - Second Edition 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.