Class WebSocketConfig
java.lang.Object
callofproject.dev.service.notification.config.WebSocketConfig
- All Implemented Interfaces:
- org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig
extends Object
implements org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
Configure the websocket.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) Configure the message broker.voidregisterStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) Register the endpoint for the websocket.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigureraddArgumentResolvers, addReturnValueHandlers, configureClientInboundChannel, configureClientOutboundChannel, configureMessageConverters, configureWebSocketTransport
- 
Constructor Details- 
WebSocketConfigpublic WebSocketConfig()Constructs a new WebSocketConfig.
 
- 
- 
Method Details- 
configureMessageBrokerpublic void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) Configure the message broker.- Specified by:
- configureMessageBrokerin interface- org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
- Parameters:
- config- The config.
 
- 
registerStompEndpointspublic void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) Register the endpoint for the websocket.- Specified by:
- registerStompEndpointsin interface- org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
- Parameters:
- registry- The registry.
 
 
-