O'Reilly logo

SignalR - Real-time Application Development - Second Edition by Einar Ingebrigtsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required