我有一个关于websocket客户端url的问题。我想对我的客户机使用远程websocket服务器。
Machine1, Machine2 ---> Remote Websocket Server我有一个websocket的配置,如下所示。
<websocket:message-broker application-destination-prefix="/app">
<websocket:stomp-endpoint path="/stomp" allowed-origins="*">
<websocket:handshake-handler ref="myHandshakeHandler"/>
<websocket:sockjs client-library-url="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"/>
</websocket:stomp-endpoint>
<websocket:simple-broker prefix="/topic,/queue"/>
<websocket:client-inbound-channel>
<websocket:interceptors>
<ref bean="myInterceptor"/>
</websocket:interceptors>
</websocket:client-inbound-channel>
</websocket:message-broker>我想发布和获取websocket操作的远程url,这样我就可以多个gui机器。如何更改为websocket主机url为https://remotemachineurl:61614的localhost。
发布于 2021-08-02 13:02:19
我在我的xml上添加了这个配置,我可以连接远程的activemq artemis。
<websocket:stomp-broker-relay prefix="/topic,/queue" relay-host="remotehost" relay-port="61614"/>https://stackoverflow.com/questions/68573680
复制相似问题