spring-framework / org.springframework.messaging.simp.stomp / ReactorNettyTcpStompClient / connect

connect

open fun connect(handler: StompSessionHandler): ListenableFuture<StompSession>

Connect and notify the given StompSessionHandler when connected on the STOMP level.

Parameters

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.

Parameters

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