O'Reilly logo

Socket.IO Cookbook by Tyson Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Creating Real-Time Dashboards

In this chapter, we will cover the following recipes:

  • Loading static data from the server
  • Creating a server-side clock
  • Loading data from MongoDB
  • Real-time analytics
  • Handling connection timeouts

Introduction

Although there is a great deal of power in bidirectional communication, Socket.IO is also a perfect tool for creating unidirectional real-time experiences. Many applications need to have some sort of dashboard interface to display analytical data or to show the state of the application data. For an application state that frequently changes, or if there are multiple users changing the state, creating the dashboard in real time makes for a much better experience.

In this chapter, we will implement various techniques ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required