Build modern real-time web applications powered by Socket.IO.
"Socket.io Real-time Web Application Development" is a guide to building, deploying, and scaling highly interactive real-time web applications using socket.io. This book will guide you through the building of a chat system using Node.js and socket.io, helping you get familiar with various features of the framework. Going further it will empower you to deploy and scale your applications in production.
Introducing web application development with Node.js, this book walks you through developing of a full-fledged chat system built with socket.io and introducing all the concepts of socket.io and its usage in the process.
It introduces you to the different approaches of bidirectional communication between the browser and the web server and will show you how socket.io abstracts all this for you to provide a single unified and uniform API for messaging and eventing to develop cross-browser applications. It explains how to authenticate your users, segregate the communication to channels, build chat rooms, and handle and scale sessions. It explains the mechanics behind socket.io and it also introduces you to what is involved in deploying the application to production and the intricacies involved in scaling it.
This book will introduce you to all that is needed in browser-server communication to develop the next generation of interactive applications and games.
What this book covers
Chapter1, Going Real Time on the Web, introduces us to the world of real-time web applications and their history.
Chapter3, Let's Chat, gets us up and running with our first single-page chat system, introducing us to the Socket.IO API for real-time communication.
Chapter4, Making It More Fun!, adds more features to our chat application, such as giving our users a name, having multiple chat rooms, and integrating express with Socket.IO sessions.
Chapter5, The Socket.IO Protocol, explains the Socket.IO protocol, its mechanism and working.
Chapter6, Deploying and Scaling, explains the intricacies involved in taking our chat system to production and scaling it out.
Appendix A, Socket.IO Quick Reference, is a reference for the Socket.IO API.
Appendix B, Socket.IO Backends, lists a few alternative backend implementations for different languages and platforms.Author: Rohit Rai