suspend fun MqttServer.listenAwait(port: Int, host: String): MqttServer
Start the server listening for incoming connections on the port and host specified It ignores any options specified through the constructor
listenHandler
- handler called when the asynchronous listen call ends
Returna
reference to this, so the API can be used fluently *
suspend fun MqttServer.listenAwait(port: Int): MqttServer
Start the server listening for incoming connections on the port specified but on "0.0.0.0" as host. It ignores any options specified through the constructor
listenHandler
- handler called when the asynchronous listen call ends
Returna
reference to this, so the API can be used fluently *
suspend fun MqttServer.listenAwait(): MqttServer
Start the server listening for incoming connections using the specified options through the constructor
listenHandler
- handler called when the asynchronous listen call ends
Returna
reference to this, so the API can be used fluently *