Glossary: Real-Time Apps with WebSockets
Socket.IO
Also written: socket.io
A library on top of WebSockets that adds named events, acks, rooms, automatic reconnecting and a long-polling fallback. Both client and server must use it.
Where the book teaches it
- Chapter 4: Socket.IO
- Chapter 5: Rooms, broadcasting and presence
- Chapter 6: Authenticating connections
- Chapter 7: Reconnecting and missed messages
- Chapter 8: Real-time in React
- Chapter 9: Scaling across servers with Redis pub/sub
- Chapter 10: Testing real-time code
- Chapter 11: Project: a live order board for the baristas