diff --git a/app.js b/app.js index 9b2c8b20f..acc505cf7 100755 --- a/app.js +++ b/app.js @@ -41,7 +41,7 @@ let opts = { app.use('/callComponent',proxy('http://proxy.homecommunity.cn:9011',opts)); app.use('/app',proxy('http://proxy.homecommunity.cn:9011',opts)); - +app.use('/ws',proxy('http://proxy.homecommunity.cn:9011',opts)); // app.use('/callComponent',proxy('http://192.168.1.106:8012',opts)); // app.use('/app',proxy('http://192.168.1.106:8012',opts)); diff --git a/public/components/frame/nav/nav.js b/public/components/frame/nav/nav.js index 221c1f4ec..b2c129f46 100755 --- a/public/components/frame/nav/nav.js +++ b/public/components/frame/nav/nav.js @@ -215,11 +215,11 @@ let url = ''; if (_protocol.startsWith('https')) { url = - "wss://" + window.location.host + "/app/message/" + + "wss://" + window.location.host + "/ws/message/" + _userId; } else { url = - "ws://" + window.location.host + "/app/message/" + + "ws://" + window.location.host + "/ws/message/" + _userId; }