@nsshunt/stsobservability 1.0.135 → 1.0.136

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.
package/dist/index.cjs CHANGED
@@ -5510,7 +5510,7 @@ class ObservabilityRESTAPISubscriber {
5510
5510
  if (socketSubscribeKeepAlive.timeout) {
5511
5511
  const end = performance.now();
5512
5512
  const diff = end - start;
5513
- let timeoutDuration = this.#options.keepAlive - diff;
5513
+ let timeoutDuration = (this.#options.keepAlive ?? 1e3) - diff;
5514
5514
  if (timeoutDuration < 500) {
5515
5515
  timeoutDuration = 500;
5516
5516
  }
@@ -5529,7 +5529,7 @@ class ObservabilityRESTAPISubscriber {
5529
5529
  const socketSubscribeKeepAlive = {
5530
5530
  id: subscription.subscriptionKey.id
5531
5531
  };
5532
- socketSubscribeKeepAlive.timeout = this.#SetupTimeout(socketSubscribeKeepAlive, subscription, this.#options.keepAlive);
5532
+ socketSubscribeKeepAlive.timeout = this.#SetupTimeout(socketSubscribeKeepAlive, subscription, this.#options.keepAlive ?? 1e3);
5533
5533
  this.#socketSubscribeKeepAlive[subscription.subscriptionKey.id] = socketSubscribeKeepAlive;
5534
5534
  this.#GetData(subscription);
5535
5535
  }