open fun connect(handler: StompSessionHandler): ListenableFuture<StompSession>
Connect and notify the given StompSessionHandler when connected on the STOMP level.
handler - the handler for the STOMP session
Return
ListenableFuture for access to the session when ready for use
open fun connect(@Nullable connectHeaders: StompHeaders, handler: StompSessionHandler): ListenableFuture<StompSession>
An overloaded version of #connect(StompSessionHandler) that accepts headers to use for the STOMP CONNECT frame.
connectHeaders - headers to add to the CONNECT frame
handler - the handler for the STOMP session
Return
ListenableFuture for access to the session when ready for use