Book Image

Node Web Development - Second Edition

By : David Herron
Book Image

Node Web Development - Second Edition

By: David Herron

Overview of this book

Table of Contents (17 chapters)
Node Web Development Second Edition
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


We've covered a lot of territory in this chapter, gaining an understanding of how to use Socket.IO to implement real-time communications between multiple clients connected to the same web application. With this we can now write applications that dynamically send events and data back and forth between the client and the server.

The Socket.IO library can be used to implement any kind of dynamic interaction between client and server. The server can be used as an intermediary for sending messages between users of an application or other peer-server-peer communications.

Specifically, we went over these things:

  • Implementing the real-time web by holding the server-client connection open

  • The Comet style protocols

  • The Socket.IO library

  • Using EventEmitters to send events within the server

  • Writing JavaScript code in the browser

  • Integrating data from the server into JavaScript on the browser

  • Sending messages between the server and client using Socket.IO

In the next chapter, we'll be wrapping this book...