消息系统
This commit is contained in:
@@ -10,6 +10,7 @@ class MyWs {
|
||||
this.reconnectionTime = null
|
||||
}
|
||||
linkWs(url) {
|
||||
if(!(JSON.parse(getCookie("userInfo"))))return
|
||||
if (this.ws && this.ws.readyState == 1) return
|
||||
if(!this.wsUrl)this.wsUrl = url +`/${JSON.parse(getCookie("userInfo")).userId}`
|
||||
this.ws = new WebSocket(this.wsUrl)
|
||||
|
||||
Reference in New Issue
Block a user