Example usage for Java org.springframework.web.socket.messaging WebSocketStompClient fields, constructors, methods, implement or subclass
The text is from its open source code.
WebSocketStompClient(WebSocketClient webSocketClient) Class constructor. |
ListenableFuture | connect(String url, @Nullable WebSocketHttpHeaders handshakeHeaders, StompSessionHandler handler, Object... uriVariables) An overloaded version of #connect(String,StompSessionHandler,Object) that also accepts WebSocketHttpHeaders to use for the WebSocket handshake. |
ListenableFuture | connect(URI url, @Nullable WebSocketHttpHeaders handshakeHeaders, @Nullable StompHeaders connectHeaders, StompSessionHandler sessionHandler) An overloaded version of #connect(String,WebSocketHttpHeaders,StompSessionHandler,Object) that accepts a fully prepared java.net.URI . |
void | setDefaultHeartbeat(long[] heartbeat) Configure the default value for the "heart-beat" header of the STOMP CONNECT frame. |
void | setMessageConverter(MessageConverter messageConverter) Set the MessageConverter to use to convert the payload of incoming and outgoing messages to and from byte[] based on object type and the "content-type" header. |
void | setTaskScheduler(@Nullable TaskScheduler taskScheduler) Also automatically sets the #setDefaultHeartbeat defaultHeartbeat property to "10000,10000" if it is currently set to "0,0". |