Chapter 11: Using WebSockets

This chapter demonstrates how to use WebSockets—a technology that makes it possible to open a two-way, interactive communication channel between a browser and a server. In the past, this was difficult to achieve on most platforms, and often required a third-party service. Node.js makes it easy, although we’ll delve into some deeper challenges.

Skip Ahead?

It’s possible to become a respected senior developer without touching WebSockets! You can skip this chapter, but the technology opens a world of opportunities you may not have considered before.

What Are WebSockets?

The web is a request–response communication platform. Your browser requests a web page and receives HTML as the response from a web server. The ...

Get Node.js: Novice to Ninja 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.