probe

abstract suspend fun probe(address: String, tlsEnabled: Boolean, username: String?, password: String?): MqttProbeStatus(source)

Probe an MQTT broker to verify connectivity and credentials without joining the proxy lifecycle. Intended for UI "Test Connection" affordances.

Parameters

address

Raw broker address as the user would type it (host, host:port, or full URL).

tlsEnabled

true to upgrade bare addresses to wss:// (ignored when address already has a scheme).

username

Optional MQTT username.

password

Optional MQTT password.