Socket.IO Real-time Web Application Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Going Real Time on the Web
What is real-time web?
A bit of history
Applications of real-time web
Summary
Getting Started with Node.js
The origin of Node.js
Why Node.js
How to get Node.js
Node.js package manager (npm)
Hello World with Node.js
Hello Web
Routing the requests
HTTP Methods
Creating our own Modules
Serving files
Third party modules and Express JS
Let's Chat
Creating the application
Designing the chat room
Bringing in jQuery
Socket.IO
Handling events
The server
The client
Making It More Fun!
Giving names to users
More on events
Working with namespaces
Rooms
Listing the rooms
Sharing the session
The Socket.IO Protocol
Why do we need another protocol?
The Socket.IO socket
The Socket.IO connection
Socket.IO messages
Deploying and Scaling
The production environment
Running the application
Keeping it running
Scaling
The node cluster
Scaling up the application
Tips for node in production
Socket.IO Quick Reference
Socket.IO Backends
Index