perf: conf: websocket 重连的时间间隔

dev/timezone
Lei OT 1 year ago
parent 70dda62020
commit 9da9854564

@ -58,7 +58,7 @@ export class RealTimeAPI {
// delay: 3000,
delay: (errors, index) => {
this.onRetry(index);
return timer(10000);
return timer(1000 * 2 * index); // linearly, but exponentially better : 2 ** index
},
resetOnSuccess: true,
}),

Loading…
Cancel
Save