Class WebSocketConfig

java.lang.Object
com.rale4j.sb.config.WebSocketConfig
All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketConfigurer

@Configuration @EnableWebSocket public class WebSocketConfig extends Object implements org.springframework.web.socket.config.annotation.WebSocketConfigurer
Configuration class for WebSocket endpoints.
  • Constructor Details

    • WebSocketConfig

      public WebSocketConfig(MyWebSocketHandler myWebSocketHandler)
      Constructor for WebSocketConfig.
      Parameters:
      myWebSocketHandler - the WebSocket handler to be used
  • Method Details

    • registerWebSocketHandlers

      public void registerWebSocketHandlers(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry)
      Registers WebSocket handlers.
      Specified by:
      registerWebSocketHandlers in interface org.springframework.web.socket.config.annotation.WebSocketConfigurer
      Parameters:
      registry - the WebSocket handler registry