Set different websocket interceptors for different channels
up vote 0 down vote favorite I have the following websocket configuration in my Spring Boot app: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfiguration implements WebSocketMessageBrokerConfigurer public static final String WEBSOCKET_HANDSHAKE_ENDPOINT_URI = "/api/wsocket"; public static final String QUOTE_CHANNEL_URI = "/quote"; @Autowired private RabbitTemplate rabbitTemplate; @Override public void configureMessageBroker(MessageBrokerRegistry config) config.enableSimpleBroker(QUOTE_CHANNEL_URI); /*Enable a simple in-memory broker for the clients to subscribe to channels and receive messages*/ config.setApplicationDestinationPrefixes("/app"); /*The prefix for the message mapping endpoints in the controller*/ @Override public void registerStompEndpoints(StompEndpointRegistry registry) /*websocket handshaking endpoint*/ registry.addEndpoint(WEBSOCKET_HANDSHAKE_ENDPOINT_URI) /*TODO remove this after developm