Chapter 3
Communication
Section 4
Introduction to Socket.IO
This video explains how Socket.IO is a combination of the client-side JavaScript library. Node.js library is used to integrate bidirectional communication between a browser and the Node.js backend. Let us begin with: - Diving into the Socket.IO API - Restricting connections based on origin - Creating namespaces in Socket.IO - Referring to all connected Socket.io clients - Creating rooms in Socket.IO - Joining and leaving a room - Referring to all connected Socket.IO clients in a room - Broadcasting messages and custom events to namespaces and rooms - Registering a middleware in Socket.IO