O'Reilly logo

Angular 2 Development with TypeScript by Yakov Fain and Anton Moiseev

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 8. Interacting with servers using HTTP and WebSockets

This chapter covers

  • Creating a simple web server using the Node and Express frameworks
  • Making server requests from Angular using the Http object API
  • Communicating with the Node server from Angular clients using the HTTP protocol
  • Wrapping a WebSocket client into an Angular service that generates an observable stream
  • Broadcasting data from the server to multiple clients via WebSockets

Angular applications can communicate with any web server supporting HTTP or WebSocket protocols, regardless of what server-side platform is used. So far, we’ve been covering mostly the client side of Angular applications, with the weather service example in chapter 5 being the only exception. In ...

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