src/hooks/web/useWebSocket.ts
@@ -12,6 +12,7 @@ * @param url */ export function connectWebSocket(url: string) { console.log("连接websocket::", url) //update-begin-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278 let token = (getToken() || '') as string; result = useWebSocket(url, { @@ -25,7 +26,7 @@ message: "ping", interval: 55000 }, protocols: [token], protocols: [token], }); //update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278 if (result) {