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

Get Angular 2 Development with TypeScript 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.