mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
加入websocket
This commit is contained in:
parent
556ca9f17a
commit
dff8ad4314
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user