@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig
extends org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
Constructor and Description |
---|
WebSocketConfig() |
Modifier and Type | Method and Description |
---|---|
void |
configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
configureClientInboundChannel before Client send a message, what is caught and is used for authenticate it's sender
|
void |
configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config)
configureMessageBroker this method enables brokers
|
void |
registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
registerStompEndPoints Defines an EndPoint for SpringApplication
|
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config)
configureMessageBroker
in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
configureMessageBroker
in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
MessageBrokerRegistry
- configpublic void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
public void configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
configureClientInboundChannel
in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
configureClientInboundChannel
in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
ChannelRegistration
-