vertx / io.vertx.rxjava.ext.stomp / StompServer / rxListen

# rxListen

`open fun rxListen(): Single<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.

Return

`open fun rxListen(port: Int): Single<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.

### Parameters

`port` - the port

Return

`open fun rxListen(port: Int, host: String): Single<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.

### Parameters

`port` - the port

`host` - the host / interface

Return