How to get WebSocketSession from ApplicationListener or interceptor

401 views Asked by At

Is it possible to get session (WebSocketSession) from SessionSubscribeEvent?

public class SubscriberListener implements ApplicationListener<SessionSubscribeEvent> {

   @Override
   public void onApplicationEvent(SessionSubscribeEvent event) {
       // how to get WebSocketSession?
   }
}

My WebSocketConfig extends from AbstractWebSocketMessageBrokerConfigurer

0

There are 0 answers