当我尝试从没有tcp连接到客户端的示例发送websocket消息时,遇到了这个问题。
我的设置:2个spring启动应用示例。单个外部rabbitmq代理。
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config.setApplicationDestinationPrefixes("/app");
config.enableStompBrokerRelay("/topic/", "/queue/", "/exchange/")
.setRelayHost(properties.getRelayHost())
.setRelayPort(properties.getRelayPort())
.setSystemLogin(properties.getRelaySystemLogin())
.setSystemPasscode(properties.getRelaySystemPassword())
.setClientLogin(properties.getRelayClientLogin())
.setClientPasscode(properties.getRelayClientPassword())
.setUserDestinationBroadcast(properties.getUserDestinationBroadcast())
.setUserRegistryBroadcast(properties.getUserRegistryBroadcast());
}
客户端已连接到示例1,从示例1发送的消息已正确发送到客户端。当消息从示例2发送时,我从 SimpUserRegistry
,但发送消息失败,原因是: No TCP connection for session ...
我是不是做错了什么,或者是什么问题?
暂无答案!
目前还没有任何答案,快来回答吧!