Class WebSocketRegistryListener

java.lang.Object
org.springframework.session.web.socket.handler.WebSocketRegistryListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

public final class WebSocketRegistryListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

Keeps track of mapping the Spring Session ID to the WebSocketSession and ensuring when a SessionDestroyedEvent is fired that the WebSocketSession is closed.

Since:
1.0
  • Constructor Details

    • WebSocketRegistryListener

      public WebSocketRegistryListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>