@dolsem/actioncable
Advanced tools
Comparing version 7.0.0-alpha-fixed-backoff to 7.0.0-alpha-linear-backoff
{ | ||
"name": "@dolsem/actioncable", | ||
"version": "7.0.0-alpha-fixed-backoff", | ||
"version": "7.0.0-alpha-linear-backoff", | ||
"description": "WebSocket framework for Ruby on Rails.", | ||
@@ -5,0 +5,0 @@ "main": "app/assets/javascripts/action_cable.js", |
@@ -77,3 +77,3 @@ import logger from "./logger" | ||
const { staleThreshold, reconnectionBackoffRate } = this.constructor | ||
const backoff = Math.pow(1 + reconnectionBackoffRate, Math.min(this.reconnectAttempts, 10)) | ||
const backoff = Math.min(this.reconnectAttempts + 1, 100) | ||
const jitterMax = this.reconnectAttempts === 0 ? 1.0 : reconnectionBackoffRate | ||
@@ -80,0 +80,0 @@ const jitter = jitterMax * Math.random() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39723