MqttTransport
interface MqttTransport
Abstract byte-level transport for MQTT connections.
This is the sole platform abstraction boundary in the library. Implementations:
TcpTransportinnonWebMain— raw TCP sockets via ktor-network (JVM, Android, iOS, macOS, Linux, Windows)WebSocketTransportinnonWebMain— binary WebSocket frames via ktor-client-websockets (JVM, Android, iOS, macOS, Linux, Windows)WebSocketTransportinwasmJsMain— binary WebSocket frames via ktor-client-websockets (browser)
This is a published service-provider interface (SPI): transport modules implement it and supply an instance through MqttConfig.Builder.transportFactory. Most consumers never touch it directly — they pick a transport module and use MqttClient.