Open KtfwyCJ opened 3 years ago
SocketJsClient:
<SockJsClient url="http://xxxx/ws" topic="/messages" onConnect={() => { console.log(111); }} onDisconnect={(err) => { console.log('err', err); }} onMessage={(msg) => { console.log(msg); }} ref={(client) => { console.log('client', client); setClientRef(client); }} />
Proxy config:
proxy: { "/ws/**": { "target": "http://xxxx", "changeOrigin": true } }
SocketJsClient:
Proxy config: