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

Get Socket.IO Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.