Class WebSocketEventListener


  • public class WebSocketEventListener
    extends Object
    Event when websocket is connected
    • Constructor Detail

      • WebSocketEventListener

        public WebSocketEventListener​(InitService initService,
                                      AweConnectionTracker connectionTracker)
        Autowired constructor
        Parameters:
        initService - Init service
    • Method Detail

      • onConnectEvent

        @EventListener
        public void onConnectEvent​(org.springframework.web.socket.messaging.SessionConnectEvent event)
        On connect event
        Parameters:
        event - Session connect event
      • onConnectedEvent

        @EventListener
        public void onConnectedEvent​(org.springframework.web.socket.messaging.SessionConnectedEvent event)
        On connected event
        Parameters:
        event - websocket event
      • onDisconnectEvent

        @EventListener
        public void onDisconnectEvent​(org.springframework.web.socket.messaging.SessionDisconnectEvent event)
        On disconnect event
        Parameters:
        event - websocket disconnect event