Chapter 13. Interacting with servers using the WebSocket protocol
This chapter covers
- Implementing a server data push to Angular clients
- Broadcasting data from the server to multiple clients
- Splitting ngAuction into two projects
- Implementing bidding in ngAuction
WebSocket is a low-overhead binary protocol supported by all modern web browsers (see https://en.wikipedia.org/wiki/WebSocket). It allows bidirectional message-oriented streaming of text and binary data between browsers and web servers. In contrast to HTTP, WebSocket is not a request/response-based protocol, and both server apps and client apps can initiate data push to the other party as soon as the data becomes available, in real time. This makes the WebSocket protocol a good fit ...
Get Angular Development with TypeScript, 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.