优化代码

This commit is contained in:
java110 2021-10-11 22:04:27 +08:00
parent ef7b6757cd
commit b7ed8afdf8
2 changed files with 3 additions and 3 deletions

2
app.js
View File

@ -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));

View File

@ -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;
}