Skip to main content
Documentation v2.0
Browser MQTT and real-time dashboards/docs/mqtt/browser-realtime

MQTT

Beta

Browser MQTT and real-time dashboards

Use MQTT over WebSocket to update browser dashboards without excessive polling.

On this page4 sections

Connection architecture

The browser uses MQTT over WebSocket Secure to receive telemetry and status. The backend listener still uses MQTT over TCP to store Data History and run server processes.

Browser credentials

Minimum configuration

DOTENV .env
MQTT_BROWSER_ENABLED=true
MQTT_WEBSOCKET_SCHEME=wss
MQTT_WEBSOCKET_HOST=HOST_BROKER
MQTT_WEBSOCKET_PORT=8084
MQTT_WEBSOCKET_PATH=/mqtt
MQTT_BROWSER_ALLOW_SHARED_CREDENTIALS=false

Data fallback

If the WebSocket connection fails, the dashboard can use the data endpoint as a fallback. The connection status must be visible so users don't mistake old data for real-time data.

Documentation feedback

Was this article helpful?

Documentation search

What do you want to learn?

Type at least two characters to search the documentation.
Code copied.