Chapter 5. Real-Time Data and WebSockets

In this chapter, we will show you how to enable real-time data communication using WebSockets. This will allow your server to directly communicate with the connected clients without having any polling on the client side.

I would really love a two-way conversation, John

In its infancy, the Internet was not much of a two-way street. The traditional client-server architecture was the king, and servers initiating communication with clients was almost unheard of (and quite possibly seen as quite heretical by some, too).

However, starting with protocols such as Internet Relay Chat (IRC), real-time chat applications quickly became killer apps over time, with an enormous surge in popularity among ordinary users (if ...

Get Learning Node.js for Mobile Application Development 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.