Class SessionWebSocketEventListener

java.lang.Object
io.micronaut.session.websocket.SessionWebSocketEventListener
All Implemented Interfaces:
io.micronaut.context.event.ApplicationEventListener<io.micronaut.websocket.event.WebSocketEvent>, EventListener

@Requires(classes=io.micronaut.websocket.event.WebSocketEvent.class) @Requires(beans=SessionStore.class) @Singleton @Internal public class SessionWebSocketEventListener extends Object implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.websocket.event.WebSocketEvent>
Persists the session in the background on web socket events.
Since:
1.0
Author:
graemerocher
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(io.micronaut.websocket.event.WebSocketEvent event)
      Specified by:
      onApplicationEvent in interface io.micronaut.context.event.ApplicationEventListener<io.micronaut.websocket.event.WebSocketEvent>