O'Reilly logo

Pro Express.js by Azat Mardan

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 16

image

Socket.IO and Express.js

Socket.IO (http://socket.io) is a library that provides the capability to establish two-way communication between a client and the server in real time. This two-way communication is driven by the WebSocket technology.

The WebSocket technology is available in most modern browsers, and the easiest way to conceptualize it is to imagine a constant connection between a browser and the server, as opposed to the traditional sporadic HTTP requests. Another difference between WebSocket and traditional HTTP requests is that the former is a two-way channel, meaning that the server can initiate the data transfer. This ...

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