Spring-session: Help in configuration of Spring Session with WebSocketConfigurer and without StompBroker

Created on 3 Oct 2016  路  1Comment  路  Source: spring-projects/spring-session

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 ?

waiting-for-triage

Most helpful comment

same problem

>All comments

same problem

Was this page helpful?
0 / 5 - 0 ratings