MqttRootsRepository

The MQTT root directory the topic finder places a user with, seeded from a bundled asset and refreshed from resource/mqttRoots.

Functions

Link copied to clipboard
abstract suspend fun getSnapshot(): MqttRootsResponse

Current best-known directory: bundled seed until a fetch has landed, then that fetch.

Link copied to clipboard
abstract suspend fun reconcile()

Best-effort network refresh. Never throws; a failed or empty fetch leaves the cache untouched.