You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/src/y-websocket.d.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ export class WebsocketProvider extends ObservableV2<{
35
35
* @param {typeof WebSocket} [opts.WebSocketPolyfill] Optionall provide a WebSocket polyfill
36
36
* @param {number} [opts.resyncInterval] Request server state every `resyncInterval` milliseconds
37
37
* @param {number} [opts.maxBackoffTime] Maximum amount of time to wait before trying to reconnect (we try to reconnect using exponential backoff)
38
-
* @param {number} [opts.minRetryInterval] Minimum mount of time to wait between reconnects if the previous connection succeeded but got closed right after.
38
+
* @param {number} [opts.maxBackoffIntervalOnSuccessfulConnects] Maximum amount of time to wait before trying to reconnect if previous connection succeeded (we try to reconnect using exponential backoff). Backoff only resets after a connection has been open for `maxBackoffIntervalOnSuccessfulConnects` ms
39
39
* @param {boolean} [opts.disableBc] Disable cross-tab BroadcastChannel communication
@@ -301,7 +310,7 @@ class WebsocketProvider extends observable.ObservableV2 {
301
310
* @param {typeof WebSocket} [opts.WebSocketPolyfill] Optionall provide a WebSocket polyfill
302
311
* @param {number} [opts.resyncInterval] Request server state every `resyncInterval` milliseconds
303
312
* @param {number} [opts.maxBackoffTime] Maximum amount of time to wait before trying to reconnect (we try to reconnect using exponential backoff)
304
-
* @param {number} [opts.minRetryInterval] Minimum mount of time to wait between reconnects if the previous connection succeeded but got closed right after.
313
+
* @param {number} [opts.maxBackoffIntervalOnSuccessfulConnects] Maximum amount of time to wait before trying to reconnect if previous connection succeeded (we try to reconnect using exponential backoff). Backoff only resets after a connection has been open for `maxBackoffIntervalOnSuccessfulConnects` ms
305
314
* @param {boolean} [opts.disableBc] Disable cross-tab BroadcastChannel communication
306
315
*/
307
316
constructor(serverUrl,roomname,doc,{
@@ -312,7 +321,7 @@ class WebsocketProvider extends observable.ObservableV2 {
312
321
WebSocketPolyfill =WebSocket,
313
322
resyncInterval =-1,
314
323
maxBackoffTime =2500,
315
-
minRetryInterval=2500,
324
+
maxBackoffIntervalOnSuccessfulConnects=2500,
316
325
disableBc =false
317
326
}={}){
318
327
super();
@@ -323,7 +332,7 @@ class WebsocketProvider extends observable.ObservableV2 {
@@ -272,7 +281,7 @@ export class WebsocketProvider extends ObservableV2 {
272
281
* @param {typeof WebSocket} [opts.WebSocketPolyfill] Optionall provide a WebSocket polyfill
273
282
* @param {number} [opts.resyncInterval] Request server state every `resyncInterval` milliseconds
274
283
* @param {number} [opts.maxBackoffTime] Maximum amount of time to wait before trying to reconnect (we try to reconnect using exponential backoff)
275
-
* @param {number} [opts.minRetryInterval] Minimum mount of time to wait between reconnects if the previous connection succeeded but got closed right after.
284
+
* @param {number} [opts.maxBackoffIntervalOnSuccessfulConnects] Maximum amount of time to wait before trying to reconnect if previous connection succeeded (we try to reconnect using exponential backoff). Backoff only resets after a connection has been open for `maxBackoffIntervalOnSuccessfulConnects` ms
276
285
* @param {boolean} [opts.disableBc] Disable cross-tab BroadcastChannel communication
277
286
*/
278
287
constructor(serverUrl,roomname,doc,{
@@ -283,7 +292,7 @@ export class WebsocketProvider extends ObservableV2 {
283
292
WebSocketPolyfill =WebSocket,
284
293
resyncInterval =-1,
285
294
maxBackoffTime =2500,
286
-
minRetryInterval=2500,
295
+
maxBackoffIntervalOnSuccessfulConnects=2500,
287
296
disableBc =false
288
297
}={}){
289
298
super()
@@ -294,7 +303,7 @@ export class WebsocketProvider extends ObservableV2 {
0 commit comments