Class WebsocketConfiguration

  • All Implemented Interfaces:
    org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer

    @Configuration
    @EnableWebSocketMessageBroker
    public class WebsocketConfiguration
    extends org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
    • Constructor Detail

      • WebsocketConfiguration

        public WebsocketConfiguration()
    • Method Detail

      • configureClientOutboundChannel

        public void configureClientOutboundChannel​(org.springframework.messaging.simp.config.ChannelRegistration registration)
        Specified by:
        configureClientOutboundChannel in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
        Overrides:
        configureClientOutboundChannel in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
      • configureMessageBroker

        public void configureMessageBroker​(org.springframework.messaging.simp.config.MessageBrokerRegistry config)
        Specified by:
        configureMessageBroker in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
        Overrides:
        configureMessageBroker in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
      • registerStompEndpoints

        public void registerStompEndpoints​(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
      • httpSessionHandshakeInterceptor

        @Bean
        public org.springframework.web.socket.server.HandshakeInterceptor httpSessionHandshakeInterceptor()