connect

Connects to the server using the host and port configured in the client's options.

Parameters:

resultHandler - handler called with the connection result. A failure will be sent to the handler if a TCP
level issue happen before the `CONNECTED` frame is received. Afterwards, the
exceptionHandler(Handler) is called.

receivedFrameHandler

Configures a received handler that gets notified when a STOMP frame is received by the client.
This handler can be used for logging, debugging or ad-hoc behavior. The frame can still be modified at the time.

writingFrameHandler

Configures a writing handler that gets notified when a STOMP frame is written on the wire.
This handler can be used for logging, debugging or ad-hoc behavior. The frame can still be modified at the time.

errorFrameHandler

A general error frame handler. It can be used to catch ERROR frame emitted during the connection process
(wrong authentication). This error handler will be pass to all StompClientConnection created from this
client. Obviously, the client can override it when the connection is established.