perf: 优化sse连接
This commit is contained in:
parent
48fca3ef85
commit
48d1cf89ff
@ -21,6 +21,7 @@ export function connectToSSE(username) {
|
||||
});
|
||||
eventSource.addEventListener('error', function (event) {
|
||||
eventSource.close()
|
||||
connectToSSE(username);
|
||||
});
|
||||
// 清除定时器
|
||||
if (timer) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user