@gethashd/bytecave-browser 1.0.7 → 1.0.8

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.
@@ -6081,6 +6081,8 @@ var ByteCaveClient = class {
6081
6081
  }
6082
6082
  }
6083
6083
  if (connected) {
6084
+ console.log("[ByteCave] Waiting for connection upgrade...");
6085
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
6084
6086
  const health = await p2pProtocolClient.getHealthFromPeer(peer.peerId);
6085
6087
  if (health) {
6086
6088
  this.knownPeers.set(peer.peerId, {
package/dist/index.cjs CHANGED
@@ -6134,6 +6134,8 @@ var ByteCaveClient = class {
6134
6134
  }
6135
6135
  }
6136
6136
  if (connected) {
6137
+ console.log("[ByteCave] Waiting for connection upgrade...");
6138
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
6137
6139
  const health = await p2pProtocolClient.getHealthFromPeer(peer.peerId);
6138
6140
  if (health) {
6139
6141
  this.knownPeers.set(peer.peerId, {
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useHashdImage,
14
14
  useHashdMedia,
15
15
  useHashdUrl
16
- } from "./chunk-ML5MSIHT.js";
16
+ } from "./chunk-DSL42Z3Z.js";
17
17
  import {
18
18
  clearHashdCache,
19
19
  createHashdUrl,
@@ -8,7 +8,7 @@ import {
8
8
  useHashdImage,
9
9
  useHashdMedia,
10
10
  useHashdUrl
11
- } from "../chunk-ML5MSIHT.js";
11
+ } from "../chunk-DSL42Z3Z.js";
12
12
  import "../chunk-EEZWRIUI.js";
13
13
  export {
14
14
  HashdAudio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethashd/bytecave-browser",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "ByteCave browser client for WebRTC P2P connections to storage nodes",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
package/src/client.ts CHANGED
@@ -181,6 +181,10 @@ export class ByteCaveClient {
181
181
  }
182
182
 
183
183
  if (connected) {
184
+ // Wait for DCUtR to upgrade connection from relay circuit to direct WebRTC
185
+ console.log('[ByteCave] Waiting for connection upgrade...');
186
+ await new Promise(resolve => setTimeout(resolve, 2000));
187
+
184
188
  // Fetch health data
185
189
  const health = await p2pProtocolClient.getHealthFromPeer(peer.peerId);
186
190
  if (health) {