client: 更新鉴权请求头等

This commit is contained in:
2021-11-07 23:55:22 +08:00
parent ab65a58552
commit 810ce34297
8 changed files with 30 additions and 40 deletions
+2
View File
@@ -22,8 +22,10 @@ window.onblur = () => {
windowStatus = 'blur';
};
// 只能通过path参数指定socket url,即使uri参数包含路径也会被忽略
const socket = IO(config.server, {
autoConnect: false,
path: config.socketPath,
});
socket.on('connect', async () => {