Real-time communication in JavaScript

Another powerful feature that has been called the future of JavaScript is real-time communication between two sockets. Before JavaScript, socket programming had been around for so long that every major programming language had its version of reading and writing data using sockets, but with JavaScript, this is kind of a new concept that needs a lot of work at this stage. There are certain ways in which you can implement real-time socket programming in JavaScript, but the most mature way at the moment is by using Socket.IO.

It basically enables a two-way event-based communication in real time that will, in turn, make the communication between two entities possible. It supports a variety of platforms, which includes ...

Get Mastering JavaScript Promises 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.