@persistica/flux-agent 0.0.38 → 0.0.39

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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -754,6 +754,7 @@ var ChannelStateManager = class {
754
754
 
755
755
  // libs/flux/shared/connection/src/lib/flux-ws-connection.ts
756
756
  var RECONNECT_DELAY_MS = 2e3;
757
+ var MAX_SIGN_ON_RETRY_DELAY_MS = 3e4;
757
758
  var createWSConnection = (id, ticket, stateManager, onReconnectCallback, options) => {
758
759
  return new FluxWebSocketConnection(
759
760
  id,
@@ -1036,6 +1037,7 @@ var FluxWebSocketConnection = class {
1036
1037
  `Failed to sign on again: ${error instanceof Error ? error.message : String(error)}`,
1037
1038
  this.fluxInstanceId
1038
1039
  );
1040
+ this.scheduleSignOn(Math.min(delayMs * 2, MAX_SIGN_ON_RETRY_DELAY_MS));
1039
1041
  });
1040
1042
  },
1041
1043
  delayMs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@persistica/flux-agent",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Persistica Flux Agent",
5
5
  "type": "module",
6
6
  "keywords": [],