Uses of Class
org.springframework.web.socket.config.annotation.WebSocketTransportRegistration
Package
Description
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of WebSocketTransportRegistration in org.springframework.web.socket.config.annotation
Modifier and TypeMethodDescriptionWebSocketTransportRegistration.addDecoratorFactory
(WebSocketHandlerDecoratorFactory factory) Add a factory that to decorate the handler used to process WebSocket messages.protected final WebSocketTransportRegistration
WebSocketMessageBrokerConfigurationSupport.getTransportRegistration()
WebSocketTransportRegistration.setDecoratorFactories
(WebSocketHandlerDecoratorFactory... factories) Configure one or more factories to decorate the handler used to process WebSocket messages.WebSocketTransportRegistration.setMessageSizeLimit
(int messageSizeLimit) Configure the maximum size of an inbound sub-protocol message, such as a STOMP frame which may be aggregated from multiple WebSocket messages.WebSocketTransportRegistration.setSendBufferSizeLimit
(int sendBufferSizeLimit) Configure the maximum amount of data to buffer when sending messages to a WebSocket session, or an HTTP response when SockJS fallback option are in use.WebSocketTransportRegistration.setSendTimeLimit
(int timeLimit) Configure a time limit (in milliseconds) for the maximum amount of a time allowed when sending messages to a WebSocket session or writing to an HTTP response when SockJS fallback option are in use.WebSocketTransportRegistration.setTimeToFirstMessage
(int timeToFirstMessage) Set the maximum time allowed in milliseconds after the WebSocket connection is established and before the first sub-protocol message is received.Modifier and TypeMethodDescriptionprotected void
DelegatingWebSocketMessageBrokerConfiguration.configureWebSocketTransport
(WebSocketTransportRegistration registration) protected void
WebSocketMessageBrokerConfigurationSupport.configureWebSocketTransport
(WebSocketTransportRegistration registry) default void
WebSocketMessageBrokerConfigurer.configureWebSocketTransport
(WebSocketTransportRegistration registry) Configure options related to the processing of messages received from and sent to WebSocket clients.ModifierConstructorDescriptionWebMvcStompEndpointRegistry
(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, TaskScheduler defaultSockJsTaskScheduler)