vertx / io.vertx.kotlin.ext.stomp / io.vertx.ext.stomp.StompServer

Extensions for io.vertx.ext.stomp.StompServer

closeAwait

suspend fun StompServer.closeAwait(): Unit

Closes the server.

listenAwait

suspend fun StompServer.listenAwait(): StompServer

Connects the STOMP server default port (61613) and network interface (0.0.0.0). Once the socket it bounds calls the given handler with the result. The result may be a failure if the socket is already used.

suspend fun StompServer.listenAwait(port: Int): StompServer

Connects the STOMP server to the given port. This method use the default host (0.0.0.0). Once the socket it bounds calls the given handler with the result. The result may be a failure if the socket is already used.

suspend fun StompServer.listenAwait(port: Int, host: String): StompServer

Connects the STOMP server to the given port / interface. Once the socket it bounds calls the given handler with the result. The result may be a failure if the socket is already used.