@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.
- package/dist/lib/browser/{chunk-2TROGP2W.mjs → chunk-JECOTTXF.mjs} +20 -3
- package/dist/lib/browser/{chunk-2TROGP2W.mjs.map → chunk-JECOTTXF.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +19 -2
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +19 -2
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/types/src/transport/webrtc-transport.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/transport/webrtc-transport.ts +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webrtc-transport.d.ts","sourceRoot":"","sources":["../../../../src/transport/webrtc-transport.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAS,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG1D,oBAAY,qBAAqB,GAAG;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;IAC/B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,qBAAa,eAAgB,YAAW,SAAS;IAQnC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAPnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,OAAO,CAAS;IAExB,QAAQ,CAAC,MAAM,cAAe;IAC9B,QAAQ,CAAC,SAAS,cAAe;IACjC,QAAQ,CAAC,MAAM,cAAqB;gBAEP,MAAM,EAAE,qBAAqB;
|
|
1
|
+
{"version":3,"file":"webrtc-transport.d.ts","sourceRoot":"","sources":["../../../../src/transport/webrtc-transport.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAS,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG1D,oBAAY,qBAAqB,GAAG;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;IAC/B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,qBAAa,eAAgB,YAAW,SAAS;IAQnC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAPnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,OAAO,CAAS;IAExB,QAAQ,CAAC,MAAM,cAAe;IAC9B,QAAQ,CAAC,SAAS,cAAe;IACjC,QAAQ,CAAC,MAAM,cAAqB;gBAEP,MAAM,EAAE,qBAAqB;IA4CpD,OAAO;IASb,MAAM,CAAC,MAAM,EAAE,MAAM;YASP,kBAAkB;CAIjC;AAGD,eAAO,MAAM,4BAA4B,kBAAmB,GAAG,KAAG,gBAMhE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/network-manager",
|
|
3
|
-
"version": "0.1.29
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "Network Manager",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"simple-peer": "9.11.0",
|
|
26
26
|
"ws": "^7.4.4",
|
|
27
27
|
"xor-distance": "^2.0.0",
|
|
28
|
-
"@dxos/async": "0.1.29
|
|
29
|
-
"@dxos/codec-protobuf": "0.1.29
|
|
30
|
-
"@dxos/context": "0.1.29
|
|
31
|
-
"@dxos/credentials": "0.1.29
|
|
32
|
-
"@dxos/crypto": "0.1.29
|
|
33
|
-
"@dxos/debug": "0.1.29
|
|
34
|
-
"@dxos/keys": "0.1.29
|
|
35
|
-
"@dxos/log": "0.1.29
|
|
36
|
-
"@dxos/messaging": "0.1.29
|
|
37
|
-
"@dxos/node-std": "0.1.29
|
|
38
|
-
"@dxos/protocols": "0.1.29
|
|
39
|
-
"@dxos/rpc": "0.1.29
|
|
40
|
-
"@dxos/teleport": "0.1.29
|
|
41
|
-
"@dxos/util": "0.1.29
|
|
28
|
+
"@dxos/async": "0.1.29",
|
|
29
|
+
"@dxos/codec-protobuf": "0.1.29",
|
|
30
|
+
"@dxos/context": "0.1.29",
|
|
31
|
+
"@dxos/credentials": "0.1.29",
|
|
32
|
+
"@dxos/crypto": "0.1.29",
|
|
33
|
+
"@dxos/debug": "0.1.29",
|
|
34
|
+
"@dxos/keys": "0.1.29",
|
|
35
|
+
"@dxos/log": "0.1.29",
|
|
36
|
+
"@dxos/messaging": "0.1.29",
|
|
37
|
+
"@dxos/node-std": "0.1.29",
|
|
38
|
+
"@dxos/protocols": "0.1.29",
|
|
39
|
+
"@dxos/rpc": "0.1.29",
|
|
40
|
+
"@dxos/teleport": "0.1.29",
|
|
41
|
+
"@dxos/util": "0.1.29"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@swc-node/register": "^1.5.4",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"earljs": "~0.1.10",
|
|
49
49
|
"fast-check": "~3.3.0",
|
|
50
50
|
"typescript": "^4.8.4",
|
|
51
|
-
"@dxos/signal": "0.1.29
|
|
51
|
+
"@dxos/signal": "0.1.29"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -58,6 +58,19 @@ export class WebRTCTransport implements Transport {
|
|
|
58
58
|
|
|
59
59
|
this._peer.on('error', async (err) => {
|
|
60
60
|
this.errors.raise(err);
|
|
61
|
+
|
|
62
|
+
// Try to gather additional information about the connection.
|
|
63
|
+
try {
|
|
64
|
+
if (typeof (this._peer as any)?._pc.getStats === 'function') {
|
|
65
|
+
(this._peer as any)._pc.getStats().then((stats: any) => {
|
|
66
|
+
log.warn('report after webrtc error', {
|
|
67
|
+
config: this.params.webrtcConfig,
|
|
68
|
+
stats
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
} catch {}
|
|
73
|
+
|
|
61
74
|
await this.destroy();
|
|
62
75
|
});
|
|
63
76
|
}
|