Package | Description |
---|---|
org.springframework.web.socket.config.annotation |
Support for annotation-based WebSocket setup in configuration classes.
|
Modifier and Type | Method and Description |
---|---|
WebSocketTransportRegistration |
WebSocketTransportRegistration.addDecoratorFactory(WebSocketHandlerDecoratorFactory factory)
Add a factory that to decorate the handler used to process WebSocket
messages.
|
protected WebSocketTransportRegistration |
WebSocketMessageBrokerConfigurationSupport.getTransportRegistration() |
WebSocketTransportRegistration |
WebSocketTransportRegistration.setDecoratorFactories(WebSocketHandlerDecoratorFactory... factories)
Configure one or more factories to decorate the handler used to process
WebSocket messages.
|
WebSocketTransportRegistration |
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 |
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 |
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 |
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 Type | Method and Description |
---|---|
protected void |
WebSocketMessageBrokerConfigurationSupport.configureWebSocketTransport(WebSocketTransportRegistration registry) |
protected void |
DelegatingWebSocketMessageBrokerConfiguration.configureWebSocketTransport(WebSocketTransportRegistration registration) |
void |
AbstractWebSocketMessageBrokerConfigurer.configureWebSocketTransport(WebSocketTransportRegistration registration)
Deprecated.
|
default void |
WebSocketMessageBrokerConfigurer.configureWebSocketTransport(WebSocketTransportRegistration registry)
Configure options related to the processing of messages received from and
sent to WebSocket clients.
|
Constructor and Description |
---|
WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler,
WebSocketTransportRegistration transportRegistration,
TaskScheduler defaultSockJsTaskScheduler) |