The way StompClient.connectAwait is implemented doesn't seem correct to me because it doesn allow to capture the exception awaitResult might throw.
When connecting you might not be able to connect for various reasons, that can be handled. The way it is implemented now connectAwait returns StompClientConnection or it swallows exceptions?
The way StompClient.connectAwait is implemented doesn't seem correct to me because it doesn allow to capture the exception awaitResult might throw.
When connecting you might not be able to connect for various reasons, that can be handled. The way it is implemented now connectAwait returns StompClientConnection or it swallows exceptions?
This WON"T work:
So if I can't connect then what? I get an exception on the main event loop? This is what i see
io.vertx.core.impl.NoStackTraceThrowable: CONNECTED frame not receive in time
I think awaitConnect should really be more like this:
please correct me if I am wrong.