Class WebSocketEventLogger

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.web.socket.messaging.AbstractSubProtocolEvent>

    @Component
    class WebSocketEventLogger
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.web.socket.messaging.AbstractSubProtocolEvent>
    Logs WebSocket events, such as SessionConnectEvent and SessionSubscribeEvent, on DEBUG level.
    • Constructor Detail

      • WebSocketEventLogger

        WebSocketEventLogger()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.web.socket.messaging.AbstractSubProtocolEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.web.socket.messaging.AbstractSubProtocolEvent>