加入websocket

This commit is contained in:
java110 2020-06-05 14:09:38 +08:00
parent 556ca9f17a
commit dff8ad4314

View File

@ -209,11 +209,11 @@
let url = '';
if (_protocol.startsWith('https')) {
url =
"wss://" + window.location.host + "/websocket/message/" +
"wss://" + window.location.host + "/app/message/" +
_userId;
} else {
url =
"ws://" + window.location.host + "/websocket/message/" +
"ws://" + window.location.host + "/app/message/" +
_userId;
}