重连20次, 间隔10秒

dev/chat
Lei OT 2 years ago
parent 3c0704b0aa
commit 7c50a4c523

@ -54,11 +54,11 @@ export class RealTimeAPI {
return this.webSocket.pipe( return this.webSocket.pipe(
// retry(10) // retry(10)
retry({ retry({
count: 10, count: 20,
// delay: 3000, // delay: 3000,
delay: (errors, index) => { delay: (errors, index) => {
this.onRetry(index); this.onRetry(index);
return timer(3000); return timer(10000);
}, },
resetOnSuccess: true, resetOnSuccess: true,
}), }),

Loading…
Cancel
Save