In this chapter, we’re working in both the client and server environments, because both are necessary when it comes to WebSockets and Socket.IO.
In this chapter I’ll introduce WebSockets more fully by demonstrating how Socket.IO works, both in the client and in the server.
Before jumping into using Socket.IO, I want to provide a quick overview of WebSockets. To do that, I also need to explain bidirectional full-duplex communication.
The term full duplex describes any form of data transmission that allows communication in both directions. The term bidirectional means that both endpoints of a transmission can communicate, as opposed to unidirectional communication, when one end of a data transmission is a sender and all other endpoints are receivers. WebSockets provides the capability for a web client, such as a browser, to open up bidirectional full-duplex communication with ...