| suspend fun MqttServer.closeAwait(): UnitClose the server supplying an handler that will be called when the server is actually closed (or has failed). | |
| suspend fun MqttServer.listenAwait(port: Int, host: String): MqttServerStart the server listening for incoming connections on the port and host specified It ignores any options specified through the constructor suspend fun MqttServer.listenAwait(port: Int): MqttServerStart 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 suspend fun MqttServer.listenAwait(): MqttServerStart the server listening for incoming connections using the specified options through the constructor |