Consuming real-time sensor data in a web application