Explorar o código

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

zhangdaiscott %!s(int64=3) %!d(string=hai) anos
pai
achega
2b824e210e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/hooks/web/useWebSocket.ts

+ 1 - 1
src/hooks/web/useWebSocket.ts

@@ -28,7 +28,7 @@ export function connectWebSocket(url: string) {
       autoReconnect: true,
       // 心跳检测
       heartbeat: false,
-      protocols: [token],
+      //protocols: [token],
     })
     //update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
     result.value.open()