perf: 优化sse连接

This commit is contained in:
jmal 2024-03-20 15:31:29 +08:00
parent 48fca3ef85
commit 48d1cf89ff

View File

@ -21,6 +21,7 @@ export function connectToSSE(username) {
});
eventSource.addEventListener('error', function (event) {
eventSource.close()
connectToSSE(username);
});
// 清除定时器
if (timer) {