@vertexvis/viewer 0.17.5-testing.4 → 0.17.5-testing.5

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.
@@ -6919,10 +6919,10 @@ class SceneTreeController {
6919
6919
  this.updateState(Object.assign(Object.assign({}, this.state), { connection: connecting }));
6920
6920
  try {
6921
6921
  this.log('Scene tree controller connecting.');
6922
- const [, stream] = await Promise.all([
6923
- this.fetchPage(0),
6924
- this.subscribe(),
6925
- ]);
6922
+ // Ensure we have a subscription prior to attempting to get the first page
6923
+ // to make sure we receive any ListChange that comes through
6924
+ const stream = await this.subscribe();
6925
+ await this.fetchPage(0);
6926
6926
  if (this.state.connection.type !== 'cancelled') {
6927
6927
  this.updateState(Object.assign(Object.assign({}, this.state), { connection: {
6928
6928
  jwtProvider,
@@ -7590,7 +7590,7 @@ class SceneTreeController {
7590
7590
  return connection.type === 'connected';
7591
7591
  }
7592
7592
  }
7593
- SceneTreeController.IDLE_RECONNECT_IN_SECONDS = 4 * 1;
7593
+ SceneTreeController.IDLE_RECONNECT_IN_SECONDS = 4 * 60;
7594
7594
  SceneTreeController.LOST_CONNECTION_RECONNECT_IN_SECONDS = 2;
7595
7595
  SceneTreeController.MAX_SUBSCRIPTION_RETRY_COUNT = 2;
7596
7596
 
@@ -7599,4 +7599,4 @@ exports.SceneTreeController = SceneTreeController;
7599
7599
  exports.SceneTreeErrorDetails = SceneTreeErrorDetails;
7600
7600
  exports.webSocketSubscriptionTransportFactory = webSocketSubscriptionTransportFactory;
7601
7601
 
7602
- //# sourceMappingURL=controller-4e9ef328.js.map
7602
+ //# sourceMappingURL=controller-c7c4f333.js.map