Hi guys,
I'm trying to use Spring Session with websockets, but I have not a StompBroker so I cannot extends directly your AbstractWebSocketMessageBrokerConfigurer . I need custom handlers... also.
My Websocket conf i very basic and it looks like this:
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
...
public class WebSocketBWConfiguration implements WebSocketConfigurer {
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(new BWebSocketHandler(), "/api/deals").setAllowedOrigins("*").addInterceptors(new HttpSessionHandshakeInterceptor());
}
}
BWebSocketHandler is my custom Handler.
Can you suggest me howto have Spring Session working with this websocket configuration ?
same problem
Most helpful comment
same problem