@nsshunt/stsobservability 1.0.135 → 1.0.137

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