Implementation of the WebSocketMessageBrokerConfigurer must implement two methods. configureMessageBroker is one of them:
public void configureMessageBroker(MessageBrokerRegistry registry) {
registry.setApplicationDestinationPrefixes("/app")...};
In this example we configured that all messages with "/app" prefix will be routed to @MessageMapping-annotated methods in controller class.
But setApplicationDestinationPrefixes accepts array of the Strings of variable length. How to assign this or that particular method in a controller all of them annotated with @MessageMapping to a specific prefix in case we have several prefixes?