You can receive measurements and alerts in real-time using websockets.
Sensorlab.io websockets is based on Socket.IO.
Here some links on libraries:
There are 3 main namespaces:
/measurements - namespace to receive measurements
/alerts - namespace to receive alerts
/public - namespace to receiver measurements from public sensors
/measurements and /alerts requires JWT for authentication, /public requires public api key from application.