@firebase/data-connect 0.7.1-eap-crashlytics.558ee841d → 0.7.1-eap-crashlytics.659b578fb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -523,13 +523,13 @@ class RESTTransport extends AbstractDataConnectTransport {
523
523
  /** The Request ID of the first request over the stream */
524
524
  const FIRST_REQUEST_ID = 1;
525
525
  /** Time to wait before closing an idle connection (no active subscriptions). */
526
- const IDLE_CONNECTION_TIMEOUT_MS = 0; // immediate close
526
+ const IDLE_CONNECTION_TIMEOUT_MS = 15 * 1000; // 15 seconds
527
527
  /** Initial reconnect delay in ms */
528
- const INITIAL_RECONNECT_DELAY_MS = 1000;
528
+ const INITIAL_RECONNECT_DELAY_MS = 1000; // 1 second
529
529
  /** Max reconnect delay in ms */
530
- const MAX_RECONNECT_DELAY_MS = 30000;
530
+ const MAX_RECONNECT_DELAY_MS = 30 * 1000; // 30 seconds
531
531
  /** Max random jitter to add to reconnect delay in ms */
532
- const MAX_RECONNECT_JITTER_MS = 500;
532
+ const MAX_RECONNECT_JITTER_MS = 0.5 * 1000; // 0.5 seconds
533
533
  /** Factor to multiply delay by on failure */
534
534
  const RECONNECT_BACKOFF_FACTOR = 1.3;
535
535
  /** Max number of reconnection attempts before giving up */
@@ -1557,7 +1557,7 @@ class WebSocketTransport extends AbstractDataConnectStreamTransport {
1557
1557
  }
1558
1558
 
1559
1559
  const name = "@firebase/data-connect";
1560
- const version = "0.7.1-eap-crashlytics.558ee841d";
1560
+ const version = "0.7.1-eap-crashlytics.659b578fb";
1561
1561
 
1562
1562
  /**
1563
1563
  * @license
@@ -3149,6 +3149,7 @@ function makeMemoryCacheProvider() {
3149
3149
  * See the License for the specific language governing permissions and
3150
3150
  * limitations under the License.
3151
3151
  */
3152
+ // eslint-disable-next-line import/no-extraneous-dependencies
3152
3153
  function registerDataConnect(variant) {
3153
3154
  setSDKVersion(SDK_VERSION$1);
3154
3155
  _registerComponent(new Component('data-connect', (container, { instanceIdentifier: connectorConfigStr, options }) => {