Class WebSocketConfig

java.lang.Object
restapi.utils.websocket.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
  • Field Details

  • Constructor Details

    • WebSocketConfig

      public WebSocketConfig()
  • Method Details

    • configureMessageBroker

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

      public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
      Specified by:
      registerStompEndpoints in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
    • configureClientInboundChannel

      public void configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
      Specified by:
      configureClientInboundChannel in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
    • corsFilter

      @Bean public CustomCorsFilter corsFilter() throws Exception
      Throws:
      Exception
    • corsConfigurationSource

      @Bean org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()