Using RabbitMQ stomp adapter to relay message across subscriptions in different servers
问题 I am using Spring to setup Stomp server endpoints (extending AbstractWebSocketMessageBrokerConfigurer) @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableStompBrokerRelay("/topic","/queue") .setRelayHost(<rmqhost>); } @Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/myapp/websockets").setAllowedOrigins("*"); } The objective is that I can have multiple servers, and a client will connect to any one of