mqttTransportFactory

expect fun mqttTransportFactory(tls: TLSConfigBuilder.() -> Unit?): MqttTransportFactory(source)

The transport(s) registered for outbound MQTT connections, composed per platform: nonWebMain gets TCP/TLS (the default, tcp:///ssl://) plus WebSocket (ws:///wss://); wasmJs gets WebSocket only — a browser cannot open a raw TCP socket at all (permanent sandbox limitation, not a library gap; mqtt-client-transport-tcp publishes no wasmJs variant at all, confirmed via its Gradle Module Metadata).

Public (not internal): core:data's MqttManagerImpl.probe() composes the identical transport for its one-off probe client and must not duplicate this platform-selection logic itself.

actual fun mqttTransportFactory(tls: TLSConfigBuilder.() -> Unit?): MqttTransportFactory(source)

The transport(s) registered for outbound MQTT connections, composed per platform: nonWebMain gets TCP/TLS (the default, tcp:///ssl://) plus WebSocket (ws:///wss://); wasmJs gets WebSocket only — a browser cannot open a raw TCP socket at all (permanent sandbox limitation, not a library gap; mqtt-client-transport-tcp publishes no wasmJs variant at all, confirmed via its Gradle Module Metadata).

Public (not internal): core:data's MqttManagerImpl.probe() composes the identical transport for its one-off probe client and must not duplicate this platform-selection logic itself.