@dxos/network-manager 0.1.53-main.972e6e3 → 0.1.53-main.acf3e0d

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.
@@ -1367,7 +1367,6 @@ var ConnectionLog = class {
1367
1367
  this._swarms.set(PublicKey6.from(swarm._instanceId), info);
1368
1368
  this.update.emit();
1369
1369
  swarm.connectionAdded.on((connection) => {
1370
- var _a, _b;
1371
1370
  const connectionInfo = {
1372
1371
  state: ConnectionState.INITIAL,
1373
1372
  remotePeerId: connection.remoteId,
@@ -1386,10 +1385,6 @@ var ConnectionLog = class {
1386
1385
  });
1387
1386
  this.update.emit();
1388
1387
  });
1389
- (_b = (_a = connection.protocol) == null ? void 0 : _a.stats) == null ? void 0 : _b.on((stats) => {
1390
- connectionInfo.streams = stats;
1391
- this.update.emit();
1392
- });
1393
1388
  });
1394
1389
  }
1395
1390
  leftSwarm(swarm) {
@@ -2203,7 +2198,6 @@ import { ErrorStream as ErrorStream5 } from "@dxos/debug";
2203
2198
  import { PublicKey as PublicKey11 } from "@dxos/keys";
2204
2199
  import { log as log12 } from "@dxos/log";
2205
2200
  import { ConnectionState as ConnectionState4 } from "@dxos/protocols/proto/dxos/mesh/bridge";
2206
- import { arrayToBuffer } from "@dxos/util";
2207
2201
  var WebRTCTransportProxy = class {
2208
2202
  // prettier-ignore
2209
2203
  constructor(_params) {
@@ -2222,7 +2216,7 @@ var WebRTCTransportProxy = class {
2222
2216
  this._serviceStream.subscribe(async (event) => {
2223
2217
  log12("WebRTCTransportProxy: event", event, {
2224
2218
  file: "webrtc-transport-proxy.ts",
2225
- line: 50,
2219
+ line: 49,
2226
2220
  scope: this,
2227
2221
  callSite: (f, a) => f(...a)
2228
2222
  });
@@ -2243,7 +2237,7 @@ var WebRTCTransportProxy = class {
2243
2237
  } catch (err) {
2244
2238
  log12.catch(err, {}, {
2245
2239
  file: "webrtc-transport-proxy.ts",
2246
- line: 67,
2240
+ line: 66,
2247
2241
  scope: this,
2248
2242
  callSite: (f, a) => f(...a)
2249
2243
  });
@@ -2255,7 +2249,7 @@ var WebRTCTransportProxy = class {
2255
2249
  });
2256
2250
  }, (error) => log12.catch(error, {}, {
2257
2251
  file: "webrtc-transport-proxy.ts",
2258
- line: 73,
2252
+ line: 72,
2259
2253
  scope: this,
2260
2254
  callSite: (f, a) => f(...a)
2261
2255
  }));
@@ -2276,7 +2270,7 @@ var WebRTCTransportProxy = class {
2276
2270
  }
2277
2271
  }
2278
2272
  _handleData(dataEvent) {
2279
- this._params.stream.write(arrayToBuffer(dataEvent.payload));
2273
+ this._params.stream.write(Buffer.from(dataEvent.payload));
2280
2274
  }
2281
2275
  async _handleSignal(signalEvent) {
2282
2276
  await this._params.sendSignal(signalEvent.payload);
@@ -2301,7 +2295,7 @@ var WebRTCTransportProxy = class {
2301
2295
  } catch (err) {
2302
2296
  log12.catch(err, {}, {
2303
2297
  file: "webrtc-transport-proxy.ts",
2304
- line: 124,
2298
+ line: 123,
2305
2299
  scope: this,
2306
2300
  callSite: (f, a) => f(...a)
2307
2301
  });
@@ -2385,4 +2379,4 @@ export {
2385
2379
  WebRTCTransportProxyFactory,
2386
2380
  createTeleportProtocolFactory
2387
2381
  };
2388
- //# sourceMappingURL=chunk-6CP5XM3F.mjs.map
2382
+ //# sourceMappingURL=chunk-U73XV3EJ.mjs.map