Introduction to Socket.IO

Get an overview of Socket.io and Client-server communication protocols.

By the end of this chapter, we’ll be able to do the following:

  • Create real-time, bidirectional, and event-based communication using a Socket.IO-powered Express server.
  • Make HTTP requests from an Express server using the built-in http Node.js module and with node-fetch.

Socket.IO overview

Socket.IO can be used to build a variety of applications that have real-time communication capabilities, such as streaming applications, document collaboration, and instant messaging.

In this chapter, we’ll build a Socket.IO-powered multiplayer trivia game.

Get hands-on with 1200+ tech skills courses.