Introduction to Socket.IO
Explore how to implement real-time bidirectional communication using Socket.IO with an Express server. Understand client-server protocols like AJAX polling, long polling, and WebSockets, and build interactive multiplayer applications.
We'll cover the following...
We'll cover the following...
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
httpNode.js module and withnode-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.