Chapter 12: Using Real-Time Data

Have you ever ordered food and watched as it made its way closer to your destination without you having to refresh the page? You may have also seen this with package deliveries or ride-hailing apps. All of these make use of real-time data. This is a form of data that is presented as soon as it is acquired. So, in these examples, as soon as the service you are using has the food, package, or car's location, it will relay that information to you. The most common way that convenience sites and messaging applications enable real-time data is by using web sockets.

In this chapter, we will cover the following topics:

  • Introduction to web sockets
  • Socket.io in action
  • Live site visitor count
  • Gaining further insights with ...

Get Elevating React Web Development with Gatsby 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.