【issues/I56UQP】WebSocket 连接发生错误

pull/22/merge
zhangdaiscott 2022-05-11 14:35:14 +08:00
parent 2b824e210e
commit 7b29a56cc0
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ const vs = {
const url = `${domain}/vxeSocket/${userId}/${this.pageId}`
//update-begin-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
let token = (getToken() || '') as string
this.ws = new WebSocket(url, [token])
this.ws = new WebSocket(url)
//update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
this.ws.onopen = this.on.open.bind(this)
this.ws.onerror = this.on.error.bind(this)