Socket.IO cookbook : over 40 recipes to help you create real-time JavaScript applications using the robust Socket.IO framework /
Over 40 recipes to help you create real-time JavaScript applications using the robust Socket.IO framework About This Book Create secure WebSocket connections and real-time mobile applications using Socket.IO Devise efficient messaging systems between the server side and the client side A step-by-ste...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Quick answers to common problems.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Wiring It Up; Introduction; Creating a Node HTTP server with Socket.IO; Creating an Express server with Socket.IO; Using Socket.IO as a cross-browser WebSocket; Debugging on the client; Debugging on the server; Chapter 2: Creating Real-Time Dashboards; Introduction; Loading static data from the server; Creating a server-side clock; Loading data from MongoDB; Real-time analytics; Handling connection timeouts; Chapter 3: Having Two-way Conversations; Introduction
- Creating a simple chat roomManaging the socket life cycle; Emitting a private message to another socket; Sending messages to all the sockets, except for the sender; Building a multiplayer tic-tac-toe game; Chapter 4: Building a Room with a View; Introduction; Creating chat channels with namespaces; Joining rooms; Leaving rooms; Listing rooms the socket is in; Creating private rooms; Setting up a default room; Chapter 5: Securing Your Data; Introduction; Implementing basic authentication; Performing token-based authentication; Handling server-side validation; Locking down the HTTP referrer
- Using secure WebSocketsChapter 6: Performing a Load Balancing Act; Introduction; Performing load balancing with the Nginx server; Using the Node.js cluster; Using Redis to pass events between nodes; Using Memcached to manage multiple nodes; Using RabbitMQ to message events across nodes; Chapter 7: Streaming Binary Data; Introduction; Broadcasting an image to other sockets; Uploading an image to the filesystem; Uploading an image to Amazon S3; Streaming audio; Streaming live video; Chapter 8: Integrating with Mobile Applications; Introduction; Throwing an alert when the socket connects
- Pushing up data from the serverResponding to tap events from the device; Doing server-side pagination; Triggering hot deploys; Index