@dxos/network-manager 0.1.29-next.ed4ce05 → 0.1.29

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.
@@ -1824,14 +1824,31 @@ var WebRTCTransport = class {
1824
1824
  this.closed.emit();
1825
1825
  });
1826
1826
  this._peer.on("error", async (err) => {
1827
+ var _a2;
1827
1828
  this.errors.raise(err);
1829
+ try {
1830
+ if (typeof ((_a2 = this._peer) == null ? void 0 : _a2._pc.getStats) === "function") {
1831
+ this._peer._pc.getStats().then((stats) => {
1832
+ log10.warn("report after webrtc error", {
1833
+ config: this.params.webrtcConfig,
1834
+ stats
1835
+ }, {
1836
+ file: "webrtc-transport.ts",
1837
+ line: 66,
1838
+ scope: this,
1839
+ callSite: (f, a) => f(...a)
1840
+ });
1841
+ });
1842
+ }
1843
+ } catch (e) {
1844
+ }
1828
1845
  await this.destroy();
1829
1846
  });
1830
1847
  }
1831
1848
  async destroy() {
1832
1849
  log10("closing...", {}, {
1833
1850
  file: "webrtc-transport.ts",
1834
- line: 66,
1851
+ line: 79,
1835
1852
  scope: this,
1836
1853
  callSite: (f, a) => f(...a)
1837
1854
  });
@@ -1841,7 +1858,7 @@ var WebRTCTransport = class {
1841
1858
  this.closed.emit();
1842
1859
  log10("closed", {}, {
1843
1860
  file: "webrtc-transport.ts",
1844
- line: 71,
1861
+ line: 84,
1845
1862
  scope: this,
1846
1863
  callSite: (f, a) => f(...a)
1847
1864
  });
@@ -2152,4 +2169,4 @@ export {
2152
2169
  WebRTCTransportProxyFactory,
2153
2170
  createTeleportProtocolFactory
2154
2171
  };
2155
- //# sourceMappingURL=chunk-2TROGP2W.mjs.map
2172
+ //# sourceMappingURL=chunk-JECOTTXF.mjs.map