Cover image for Socket.io Real-time Web Application Development
Socket.io Real-time Web Application Development
Title:
Socket.io Real-time Web Application Development
Author:
Rai, Rohit.
ISBN:
9781782160793

9781621988823

9781782160786
Personal Author:
Publication Information:
Birmingham : Packt Pub., 2013.
Physical Description:
1 online resource (140 pages)
Contents:
Cover; Copyright; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Going Real Time on the Web; What is real-time web?; A bit of history; Applications of real-time web; Gaming; Social stream updates; Business applications; Web-based monitors; Summary; Chapter 2: Getting Started with Node.js; The origin of Node.js; Why Node.js; JavaScript everywhere; Event-driven design; Corporate backing; How to get Node.js; Node.js package manager (npm); Hello World with Node.js; Hello Web; Routing the requests; HTTP mMethods.

Creating our own mModulesServing files; Third party modules and Express JS; Summary; Chapter 3: Let's Chat; Creating the application; Designing the chat room; Bringing in jQuery; Socket.io; Handling events; The server; The client; Summary; Chapter 4: Making It More Fun!; Giving names to users; More on events; Working with namespaces; Rooms; Listing the rooms; Sharing the session; Summary; Chapter 5: The Socket.io Protocol; Why do we need another protocol?; The WebSocket API; The socket.io API; The socket.io socket; The socket.io connection; Socket.io messages; Disconnect (0); Connect (1).

Heartbeat (2)Message (3); JSON message (4); Event (5); ACK (6); Error (7); NOOP(8); Summary; Chapter 6: 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; Summary; Appendix A: Socket.io Quick Reference; The server; Instantiating socket; Starting socket.io; Listening to events; Emitting an event; Sending a message; Sending a JSON message; Broadcasting a message/event; Sending a volatile message; Storing socket data; Getting the socket data; Restricting to a namespace.

Joining a roomBroadcasting messages/events in a room; Leaving a room; Changing the configuration; Server events; connection; message; disconnect; The client; Connecting to a socket; Listening to events; Emiting an event; Sending a message; Client events; connect; connecting; disconnect; connect_failed; error; message; reconnect; reconnecting; reconnect_failed; Appendix B: Socket.io Backends; Erlang; Google Go; Java; Perl; Python; Summary; Index.
Abstract:
Socket.io Real-time Web Application Development.
Holds: Copies: