是否可以从SessionSubscribeEvent获取会话(WebSocketSession)?
public class SubscriberListener implements ApplicationListener<SessionSubscribeEvent> {
@Override
public void onApplicationEvent(SessionSubscribeEvent event) {
// how to get WebSocketSession?
}
}
我的WebSocketConfig从AbstractWebSocketMessageBrokerConfigurer扩展