Socket.IO Real-time Web Application Development

Build modern real-time web applications powered by Socket.IO
Preview in Mapt

Socket.IO Real-time Web Application Development

Rohit Rai

Build modern real-time web applications powered by Socket.IO
Mapt Subscription
FREE
$29.99/m after trial
eBook
$11.90
RRP $16.99
Save 29%
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$11.90
$24.99
$29.99 p/m after trial
RRP $16.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Socket.IO Real-time Web Application Development Book Cover
Socket.IO Real-time Web Application Development
$ 16.99
$ 11.90
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 28.00
Buy 2 for $29.40
Save $27.58
Add to Cart

Book Details

ISBN 139781782160786
Paperback140 pages

Book Description

The expectations of users for interactivity withweb applications have changed over the past few years. No more does the user want to press the refresh button to check if new messages have arrived in their inbox; people expect to see updates in their applications in real-time. Mass multiplayer online games have given up the requirement of plugins and are built entirely in JavaScript. Socket.io enables you to build these highly interactive applications that work cross-browser.

"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.

Table of Contents

Chapter 1: Going Real Time on the Web
What is real-time web?
A bit of history
Applications of real-time web
Summary
Chapter 2: 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
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 Socket.IO socket
The Socket.IO connection
Socket.IO messages
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

What You Will Learn

  • Establish a bidirectional connection in the  browser to the web server
  • Develop a chat system using Node.js and socket.io
  • Various methods of pushing information from the server to the browser
  • Get familiar with socket.io API for cross-browser bidirectional communication
  • Understand the socket.io protocol and its mechanics behind the scenes
  • Get to know Socket.io messaging, events, sessions, authorization, namespaces, and rooms
  • Cluster and distribute the socket.io sessions using redis session store

Authors

Table of Contents

Chapter 1: Going Real Time on the Web
What is real-time web?
A bit of history
Applications of real-time web
Summary
Chapter 2: 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
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 Socket.IO socket
The Socket.IO connection
Socket.IO messages
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

Book Details

ISBN 139781782160786
Paperback140 pages
Read More

Read More Reviews

Recommended for You

Socket.IO Cookbook Book Cover
Socket.IO Cookbook
$ 23.99
$ 16.80
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
WebSocket Essentials – Building Apps with HTML5 WebSockets Book Cover
WebSocket Essentials – Building Apps with HTML5 WebSockets
$ 23.99
$ 16.80
Raspberry Pi for Secret Agents - Third Edition Book Cover
Raspberry Pi for Secret Agents - Third Edition
$ 27.99
$ 19.60
Node.js Web Development - Third Edition Book Cover
Node.js Web Development - Third Edition
$ 35.99
$ 25.20
IPython Interactive Computing and Visualization Cookbook Book Cover
IPython Interactive Computing and Visualization Cookbook
$ 29.99
$ 21.00