测试管理socket订阅调整

This commit is contained in:
dong 2023-09-13 17:25:14 +08:00
parent 40ae549484
commit 4d31604015

View File

@ -328,7 +328,9 @@ async function socketConnect() {
token: getOnlyToken() as string,
protocol: 'protobuf',
});
socket.subscribe(destination, handler);
socket.on('connected', () => {
socket?.subscribe(destination, handler);
});
})
.catch((err) => {
console.log(err, '获取仿真信息更新通道名称失败!');