This commit is contained in:
aqu415
2022-02-14 21:46:12 +08:00
parent a30894d2aa
commit 4074afd250
4 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
// 初始化websocket
_init_ws: function () {
if (!this.web_socket) {
const ws = new WebSocket(this.coop_ws_url);
const ws = new WebSocket(this.coop_ws_url + '?_' + this.coop_mind_id)
this.web_socket = ws
//申请一个WebSocket对象,参数是服务端地址,同http协议使用http://开头一样,WebSocket协议的url使用ws://开头,另外安全的WebSocket协议使用wss://开头
ws.onopen = function () {