client: 更新鉴权请求头等
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user