@dxos/network-manager 0.5.9-next.728078d → 0.5.9-next.73dcc17
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-DF5W3U6V.mjs → chunk-VCGCTQ7O.mjs} +33 -9
- package/dist/lib/browser/{chunk-DF5W3U6V.mjs.map → chunk-VCGCTQ7O.mjs.map} +1 -1
- 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/{chunk-VAZ57C4O.cjs → chunk-KVS6UT25.cjs} +36 -12
- package/dist/lib/node/{chunk-VAZ57C4O.cjs.map → chunk-KVS6UT25.cjs.map} +1 -1
- package/dist/lib/node/index.cjs +27 -27
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +18 -18
- package/package.json +17 -17
|
@@ -59,8 +59,14 @@ var Connection = class {
|
|
|
59
59
|
this._protocol = _protocol;
|
|
60
60
|
this._transportFactory = _transportFactory;
|
|
61
61
|
this._callbacks = _callbacks;
|
|
62
|
-
this._ctx = new Context(
|
|
63
|
-
|
|
62
|
+
this._ctx = new Context(void 0, {
|
|
63
|
+
F: __dxlog_file,
|
|
64
|
+
L: 100
|
|
65
|
+
});
|
|
66
|
+
this.connectedTimeoutContext = new Context(void 0, {
|
|
67
|
+
F: __dxlog_file,
|
|
68
|
+
L: 101
|
|
69
|
+
});
|
|
64
70
|
this._protocolClosed = new Trigger();
|
|
65
71
|
this._transportClosed = new Trigger();
|
|
66
72
|
this._state = "CREATED";
|
|
@@ -609,7 +615,10 @@ var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-mana
|
|
|
609
615
|
var SwarmMessage = schema.getCodecForType("dxos.mesh.swarm.SwarmMessage");
|
|
610
616
|
var SwarmMessenger = class {
|
|
611
617
|
constructor({ sendMessage, onSignal, onOffer, topic }) {
|
|
612
|
-
this._ctx = new Context2(
|
|
618
|
+
this._ctx = new Context2(void 0, {
|
|
619
|
+
F: __dxlog_file2,
|
|
620
|
+
L: 33
|
|
621
|
+
});
|
|
613
622
|
this._offerRecords = new ComplexMap((key) => key.toHex());
|
|
614
623
|
this._sendMessage = sendMessage;
|
|
615
624
|
this._onSignal = onSignal;
|
|
@@ -887,7 +896,10 @@ var Peer = class {
|
|
|
887
896
|
this._callbacks = _callbacks;
|
|
888
897
|
this._availableAfter = 0;
|
|
889
898
|
this.availableToConnect = true;
|
|
890
|
-
this._ctx = new Context3(
|
|
899
|
+
this._ctx = new Context3(void 0, {
|
|
900
|
+
F: __dxlog_file3,
|
|
901
|
+
L: 79
|
|
902
|
+
});
|
|
891
903
|
this.advertizing = false;
|
|
892
904
|
this.initiating = false;
|
|
893
905
|
this.connectionDisplaced = new Event2();
|
|
@@ -1361,7 +1373,10 @@ var Swarm = class {
|
|
|
1361
1373
|
this._label = _label;
|
|
1362
1374
|
this._connectionLimiter = _connectionLimiter;
|
|
1363
1375
|
this._initiationDelay = _initiationDelay;
|
|
1364
|
-
this._ctx = new Context4(
|
|
1376
|
+
this._ctx = new Context4(void 0, {
|
|
1377
|
+
F: __dxlog_file4,
|
|
1378
|
+
L: 39
|
|
1379
|
+
});
|
|
1365
1380
|
this._listeningHandle = void 0;
|
|
1366
1381
|
this._peers = new ComplexMap2(PublicKey4.hash);
|
|
1367
1382
|
this._instanceId = PublicKey4.random().toHex();
|
|
@@ -1665,7 +1680,10 @@ var Swarm = class {
|
|
|
1665
1680
|
}
|
|
1666
1681
|
// For debug purposes
|
|
1667
1682
|
async goOnline() {
|
|
1668
|
-
this._ctx = new Context4(
|
|
1683
|
+
this._ctx = new Context4(void 0, {
|
|
1684
|
+
F: __dxlog_file4,
|
|
1685
|
+
L: 253
|
|
1686
|
+
});
|
|
1669
1687
|
}
|
|
1670
1688
|
_getOrCreatePeer(peerId) {
|
|
1671
1689
|
let peer = this._peers.get(peerId);
|
|
@@ -1916,7 +1934,10 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-mana
|
|
|
1916
1934
|
var MAX_CONCURRENT_INITIATING_CONNECTIONS = 50;
|
|
1917
1935
|
var ConnectionLimiter = class {
|
|
1918
1936
|
constructor({ maxConcurrentInitConnections = MAX_CONCURRENT_INITIATING_CONNECTIONS } = {}) {
|
|
1919
|
-
this._ctx = new Context5(
|
|
1937
|
+
this._ctx = new Context5(void 0, {
|
|
1938
|
+
F: __dxlog_file6,
|
|
1939
|
+
L: 23
|
|
1940
|
+
});
|
|
1920
1941
|
/**
|
|
1921
1942
|
* Queue of promises to resolve when initiating connections amount is below the limit.
|
|
1922
1943
|
*/
|
|
@@ -3309,7 +3330,10 @@ var SimplePeerTransportProxy = class {
|
|
|
3309
3330
|
constructor(_options) {
|
|
3310
3331
|
this._options = _options;
|
|
3311
3332
|
this._proxyId = PublicKey12.random();
|
|
3312
|
-
this._ctx = new Context6(
|
|
3333
|
+
this._ctx = new Context6(void 0, {
|
|
3334
|
+
F: __dxlog_file14,
|
|
3335
|
+
L: 37
|
|
3336
|
+
});
|
|
3313
3337
|
this._timeoutCount = 0;
|
|
3314
3338
|
this.closed = new Event9();
|
|
3315
3339
|
this.connected = new Event9();
|
|
@@ -4063,4 +4087,4 @@ export {
|
|
|
4063
4087
|
TcpTransport,
|
|
4064
4088
|
createTeleportProtocolFactory
|
|
4065
4089
|
};
|
|
4066
|
-
//# sourceMappingURL=chunk-
|
|
4090
|
+
//# sourceMappingURL=chunk-VCGCTQ7O.mjs.map
|