@hmcts/ccd-case-ui-toolkit 7.3.78-exui-2906-activity-tracker-web-pubsub → 7.3.78-exui-2906-activity-tracker-web-pubsub-2

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.
@@ -2419,6 +2419,10 @@ class ActivityComponent {
2419
2419
  const ACTIVITY_WEB_PUBSUB_SHARED_STATE_KEY = '__ccdActivityWebPubSubSharedState__';
2420
2420
  const ACTIVITY_WEB_PUBSUB_CLOSE_GRACE_MS = 5000;
2421
2421
  const ACTIVITY_WEB_PUBSUB_RESTART_DELAY_MS = 5000;
2422
+ // Avoid application-level ping/pong frames. The WebSocket remains open and the
2423
+ // client still reconnects when the browser receives an actual close event.
2424
+ const ACTIVITY_WEB_PUBSUB_KEEP_ALIVE_INTERVAL_MS = 0;
2425
+ const ACTIVITY_WEB_PUBSUB_KEEP_ALIVE_TIMEOUT_MS = 0;
2422
2426
  /**
2423
2427
  * Provides the real-time case activity API.
2424
2428
  *
@@ -2632,6 +2636,8 @@ class ActivitySocketService {
2632
2636
  }
2633
2637
  }, {
2634
2638
  autoReconnect: true,
2639
+ keepAliveIntervalInMs: ACTIVITY_WEB_PUBSUB_KEEP_ALIVE_INTERVAL_MS,
2640
+ keepAliveTimeoutInMs: ACTIVITY_WEB_PUBSUB_KEEP_ALIVE_TIMEOUT_MS,
2635
2641
  reconnectRetryOptions: {
2636
2642
  maxRetries: 10,
2637
2643
  mode: 'Exponential',