@persistica/flux-agent 0.0.17 → 0.0.18

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 +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -393,7 +393,9 @@ var FluxAgentNetworkConnection = class {
393
393
  this._fluxWebSocketClientConnection,
394
394
  this._webRTCStateChange
395
395
  );
396
- console.log("RTCPeerConnection is available", !!this.iceConnection);
396
+ console.log(
397
+ this.iceConnection ? `RTCPeerConnection is available` : `RTCPeerConnection is not available`
398
+ );
397
399
  } else {
398
400
  console.warn("\u2757WebRTC is not available in this environment.");
399
401
  }
@@ -510,7 +512,7 @@ var createWSConnection = (id, ticket, stateManager, onReconnectCallback, options
510
512
  stateManager,
511
513
  ticket,
512
514
  {
513
- domain: options?.domain,
515
+ domain: options.domain,
514
516
  secretKey: options?.secretKey,
515
517
  retries: options?.retries
516
518
  }
@@ -524,7 +526,7 @@ var FluxWebSocketConnection = class {
524
526
  this.token = token;
525
527
  this.options = options;
526
528
  this.options = {
527
- domain: this.options?.domain,
529
+ domain: this.options.domain,
528
530
  secretKey: this.options?.secretKey,
529
531
  retries: this.options?.retries ?? 1e4
530
532
  };
@@ -1126,7 +1128,10 @@ var FluxAgent = class {
1126
1128
  clientUId
1127
1129
  );
1128
1130
  },
1129
- this.options
1131
+ {
1132
+ ...this.options,
1133
+ domain
1134
+ }
1130
1135
  );
1131
1136
  this.fluxClientData.updateWsConnection(this.fluxWebSocketConnection);
1132
1137
  const fluxNetworkConnection = await this.fluxWebSocketConnection.connectToNetwork();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@persistica/flux-agent",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Persistica Flux Agent",
5
5
  "type": "module",
6
6
  "keywords": [],