@dxos/network-manager 0.1.18 → 0.1.20

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.
@@ -108,7 +108,7 @@ var Connection = class {
108
108
  log("closing...", {
109
109
  peerId: this.ownId
110
110
  }, {
111
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
111
+ file: "connection.ts",
112
112
  line: 142,
113
113
  scope: this,
114
114
  callSite: (f, a) => f(...a)
@@ -117,7 +117,7 @@ var Connection = class {
117
117
  await this._protocol.destroy();
118
118
  } catch (err) {
119
119
  log.catch(err, {}, {
120
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
120
+ file: "connection.ts",
121
121
  line: 148,
122
122
  scope: this,
123
123
  callSite: (f, a) => f(...a)
@@ -127,7 +127,7 @@ var Connection = class {
127
127
  await ((_a = this._transport) == null ? void 0 : _a.destroy());
128
128
  } catch (err1) {
129
129
  log.catch(err1, {}, {
130
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
130
+ file: "connection.ts",
131
131
  line: 155,
132
132
  scope: this,
133
133
  callSite: (f, a) => f(...a)
@@ -136,7 +136,7 @@ var Connection = class {
136
136
  log("closed", {
137
137
  peerId: this.ownId
138
138
  }, {
139
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
139
+ file: "connection.ts",
140
140
  line: 158,
141
141
  scope: this,
142
142
  callSite: (f, a) => f(...a)
@@ -148,7 +148,7 @@ var Connection = class {
148
148
  assert(msg.sessionId);
149
149
  if (!msg.sessionId.equals(this.sessionId)) {
150
150
  log("dropping signal for incorrect session id", {}, {
151
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
151
+ file: "connection.ts",
152
152
  line: 165,
153
153
  scope: this,
154
154
  callSite: (f, a) => f(...a)
@@ -164,7 +164,7 @@ var Connection = class {
164
164
  remoteId: this.remoteId,
165
165
  msg: msg.data
166
166
  }, {
167
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
167
+ file: "connection.ts",
168
168
  line: 173,
169
169
  scope: this,
170
170
  callSite: (f, a) => f(...a)
@@ -178,7 +178,7 @@ var Connection = class {
178
178
  remoteId: this.remoteId,
179
179
  msg: msg.data
180
180
  }, {
181
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
181
+ file: "connection.ts",
182
182
  line: 179,
183
183
  scope: this,
184
184
  callSite: (f, a) => f(...a)
@@ -232,7 +232,7 @@ var MessageRouter = class {
232
232
  to: recipient,
233
233
  msg: message
234
234
  }, {
235
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
235
+ file: "message-router.ts",
236
236
  line: 67,
237
237
  scope: this,
238
238
  callSite: (f, a) => f(...a)
@@ -290,7 +290,7 @@ var MessageRouter = class {
290
290
  to: recipient,
291
291
  msg: networkMessage
292
292
  }, {
293
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
293
+ file: "message-router.ts",
294
294
  line: 117,
295
295
  scope: this,
296
296
  callSite: (f, a) => f(...a)
@@ -321,7 +321,7 @@ var MessageRouter = class {
321
321
  log2("resolving", {
322
322
  answer: message.data.answer
323
323
  }, {
324
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
324
+ file: "message-router.ts",
325
325
  line: 146,
326
326
  scope: this,
327
327
  callSite: (f, a) => f(...a)
@@ -404,7 +404,7 @@ var Peer = class {
404
404
  topic: this.topic,
405
405
  peerId: this.localPeerId
406
406
  }, {
407
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
407
+ file: "peer.ts",
408
408
  line: 83,
409
409
  scope: this,
410
410
  callSite: (f, a) => f(...a)
@@ -431,7 +431,7 @@ var Peer = class {
431
431
  remoteId: this.id,
432
432
  err
433
433
  }, {
434
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
434
+ file: "peer.ts",
435
435
  line: 107,
436
436
  scope: this,
437
437
  callSite: (f, a) => f(...a)
@@ -457,7 +457,7 @@ var Peer = class {
457
457
  peerId: this.id,
458
458
  sessionId
459
459
  }, {
460
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
460
+ file: "peer.ts",
461
461
  line: 125,
462
462
  scope: this,
463
463
  callSite: (f, a) => f(...a)
@@ -480,14 +480,14 @@ var Peer = class {
480
480
  ownId: this.localPeerId,
481
481
  remoteId: this.id
482
482
  }, {
483
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
483
+ file: "peer.ts",
484
484
  line: 137,
485
485
  scope: this,
486
486
  callSite: (f, a) => f(...a)
487
487
  });
488
488
  if (connection.state !== ConnectionState.INITIAL) {
489
489
  log3("ignoring response", {}, {
490
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
490
+ file: "peer.ts",
491
491
  line: 139,
492
492
  scope: this,
493
493
  callSite: (f, a) => f(...a)
@@ -507,7 +507,7 @@ var Peer = class {
507
507
  remoteId: this.id,
508
508
  err
509
509
  }, {
510
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
510
+ file: "peer.ts",
511
511
  line: 150,
512
512
  scope: this,
513
513
  callSite: (f, a) => f(...a)
@@ -526,7 +526,7 @@ var Peer = class {
526
526
  initiator,
527
527
  sessionId
528
528
  }, {
529
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
529
+ file: "peer.ts",
530
530
  line: 164,
531
531
  scope: this,
532
532
  callSite: (f, a) => f(...a)
@@ -561,7 +561,7 @@ var Peer = class {
561
561
  remoteId: this.id,
562
562
  initiator
563
563
  }, {
564
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
564
+ file: "peer.ts",
565
565
  line: 193,
566
566
  scope: this,
567
567
  callSite: (f, a) => f(...a)
@@ -581,7 +581,7 @@ var Peer = class {
581
581
  initiator,
582
582
  err
583
583
  }, {
584
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
584
+ file: "peer.ts",
585
585
  line: 203,
586
586
  scope: this,
587
587
  callSite: (f, a) => f(...a)
@@ -600,7 +600,7 @@ var Peer = class {
600
600
  peerId: this.id,
601
601
  sessionId: connection.sessionId
602
602
  }, {
603
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
603
+ file: "peer.ts",
604
604
  line: 219,
605
605
  scope: this,
606
606
  callSite: (f, a) => f(...a)
@@ -610,7 +610,7 @@ var Peer = class {
610
610
  peerId: this.id,
611
611
  sessionId: connection.sessionId
612
612
  }, {
613
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
613
+ file: "peer.ts",
614
614
  line: 225,
615
615
  scope: this,
616
616
  callSite: (f, a) => f(...a)
@@ -621,7 +621,7 @@ var Peer = class {
621
621
  log3("dropping signal message for non-existent connection", {
622
622
  message
623
623
  }, {
624
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
624
+ file: "peer.ts",
625
625
  line: 230,
626
626
  scope: this,
627
627
  callSite: (f, a) => f(...a)
@@ -636,7 +636,7 @@ var Peer = class {
636
636
  peerId: this.id,
637
637
  topic: this.topic
638
638
  }, {
639
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
639
+ file: "peer.ts",
640
640
  line: 238,
641
641
  scope: this,
642
642
  callSite: (f, a) => f(...a)
@@ -680,7 +680,7 @@ var Swarm = class {
680
680
  log4("creating swarm", {
681
681
  peerId: _ownPeerId
682
682
  }, {
683
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
683
+ file: "swarm.ts",
684
684
  line: 80,
685
685
  scope: this,
686
686
  callSite: (f, a) => f(...a)
@@ -697,7 +697,7 @@ var Swarm = class {
697
697
  payloadType: "dxos.mesh.swarm.SwarmMessage",
698
698
  onMessage: async (message) => await this._swarmMessenger.receiveMessage(message)
699
699
  }).catch((error) => log4.catch(error, {}, {
700
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
700
+ file: "swarm.ts",
701
701
  line: 96,
702
702
  scope: this,
703
703
  callSite: (f, a) => f(...a)
@@ -717,7 +717,7 @@ var Swarm = class {
717
717
  }
718
718
  async destroy() {
719
719
  log4("destroying...", {}, {
720
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
720
+ file: "swarm.ts",
721
721
  line: 124,
722
722
  scope: this,
723
723
  callSite: (f, a) => f(...a)
@@ -726,7 +726,7 @@ var Swarm = class {
726
726
  await this._topology.destroy();
727
727
  await Promise.all(Array.from(this._peers.keys()).map((key) => this._destroyPeer(key)));
728
728
  log4("destroyed", {}, {
729
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
729
+ file: "swarm.ts",
730
730
  line: 128,
731
731
  scope: this,
732
732
  callSite: (f, a) => f(...a)
@@ -740,7 +740,7 @@ var Swarm = class {
740
740
  previous: getClassName(this._topology),
741
741
  topology: getClassName(topology)
742
742
  }, {
743
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
743
+ file: "swarm.ts",
744
744
  line: 135,
745
745
  scope: this,
746
746
  callSite: (f, a) => f(...a)
@@ -792,14 +792,14 @@ var Swarm = class {
792
792
  log4("swarm event", {
793
793
  swarmEvent
794
794
  }, {
795
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
795
+ file: "swarm.ts",
796
796
  line: 199,
797
797
  scope: this,
798
798
  callSite: (f, a) => f(...a)
799
799
  });
800
800
  if (this._ctx.disposed) {
801
801
  log4.warn("ignored for destroyed swarm", {}, {
802
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
802
+ file: "swarm.ts",
803
803
  line: 201,
804
804
  scope: this,
805
805
  callSite: (f, a) => f(...a)
@@ -811,7 +811,7 @@ var Swarm = class {
811
811
  log4("new peer", {
812
812
  peerId
813
813
  }, {
814
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
814
+ file: "swarm.ts",
815
815
  line: 207,
816
816
  scope: this,
817
817
  callSite: (f, a) => f(...a)
@@ -836,14 +836,14 @@ var Swarm = class {
836
836
  log4("offer", {
837
837
  message
838
838
  }, {
839
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
839
+ file: "swarm.ts",
840
840
  line: 226,
841
841
  scope: this,
842
842
  callSite: (f, a) => f(...a)
843
843
  });
844
844
  if (this._ctx.disposed) {
845
845
  log4.info("ignored for destroyed swarm", {}, {
846
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
846
+ file: "swarm.ts",
847
847
  line: 228,
848
848
  scope: this,
849
849
  callSite: (f, a) => f(...a)
@@ -857,7 +857,7 @@ var Swarm = class {
857
857
  log4("rejecting offer with incorrect peerId", {
858
858
  message
859
859
  }, {
860
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
860
+ file: "swarm.ts",
861
861
  line: 235,
862
862
  scope: this,
863
863
  callSite: (f, a) => f(...a)
@@ -870,7 +870,7 @@ var Swarm = class {
870
870
  log4("rejecting offer with incorrect topic", {
871
871
  message
872
872
  }, {
873
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
873
+ file: "swarm.ts",
874
874
  line: 239,
875
875
  scope: this,
876
876
  callSite: (f, a) => f(...a)
@@ -889,14 +889,14 @@ var Swarm = class {
889
889
  log4("signal", {
890
890
  message
891
891
  }, {
892
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
892
+ file: "swarm.ts",
893
893
  line: 250,
894
894
  scope: this,
895
895
  callSite: (f, a) => f(...a)
896
896
  });
897
897
  if (this._ctx.disposed) {
898
898
  log4.info("ignored for destroyed swarm", {}, {
899
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
899
+ file: "swarm.ts",
900
900
  line: 252,
901
901
  scope: this,
902
902
  callSite: (f, a) => f(...a)
@@ -925,7 +925,7 @@ var Swarm = class {
925
925
  await this._initiateConnection(peer);
926
926
  } catch (err) {
927
927
  log4.warn("initiation error", err, {
928
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
928
+ file: "swarm.ts",
929
929
  line: 287,
930
930
  scope: this,
931
931
  callSite: (f, a) => f(...a)
@@ -949,7 +949,7 @@ var Swarm = class {
949
949
  log4("initiation delay", {
950
950
  remoteId
951
951
  }, {
952
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
952
+ file: "swarm.ts",
953
953
  line: 312,
954
954
  scope: this,
955
955
  callSite: (f, a) => f(...a)
@@ -966,7 +966,7 @@ var Swarm = class {
966
966
  log4("initiating connection...", {
967
967
  remoteId
968
968
  }, {
969
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
969
+ file: "swarm.ts",
970
970
  line: 326,
971
971
  scope: this,
972
972
  callSite: (f, a) => f(...a)
@@ -976,7 +976,7 @@ var Swarm = class {
976
976
  log4("initiated", {
977
977
  remoteId
978
978
  }, {
979
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
979
+ file: "swarm.ts",
980
980
  line: 329,
981
981
  scope: this,
982
982
  callSite: (f, a) => f(...a)
@@ -1031,7 +1031,7 @@ var SwarmMapper = class {
1031
1031
  }
1032
1032
  _update() {
1033
1033
  log5("updating swarm", {}, {
1034
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm-mapper.ts",
1034
+ file: "swarm-mapper.ts",
1035
1035
  line: 75,
1036
1036
  scope: this,
1037
1037
  callSite: (f, a) => f(...a)
@@ -1055,7 +1055,7 @@ var SwarmMapper = class {
1055
1055
  directConnections: this._swarm.connections.length,
1056
1056
  totalPeersInSwarm: this._peers.size
1057
1057
  }, {
1058
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm-mapper.ts",
1058
+ file: "swarm-mapper.ts",
1059
1059
  line: 116,
1060
1060
  scope: this,
1061
1061
  callSite: (f, a) => f(...a)
@@ -1174,7 +1174,7 @@ var NetworkManager = class {
1174
1174
  for (const topic of this._swarms.keys()) {
1175
1175
  await this.leaveSwarm(topic).catch((err) => {
1176
1176
  log6(err, {}, {
1177
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1177
+ file: "network-manager.ts",
1178
1178
  line: 122,
1179
1179
  scope: this,
1180
1180
  callSite: (f, a) => f(...a)
@@ -1197,7 +1197,7 @@ var NetworkManager = class {
1197
1197
  peerId,
1198
1198
  topology: topology.toString()
1199
1199
  }, {
1200
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1200
+ file: "network-manager.ts",
1201
1201
  line: 148,
1202
1202
  scope: this,
1203
1203
  callSite: (f, a) => f(...a)
@@ -1207,7 +1207,7 @@ var NetworkManager = class {
1207
1207
  log6("swarm error", {
1208
1208
  error
1209
1209
  }, {
1210
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1210
+ file: "network-manager.ts",
1211
1211
  line: 151,
1212
1212
  scope: this,
1213
1213
  callSite: (f, a) => f(...a)
@@ -1218,7 +1218,7 @@ var NetworkManager = class {
1218
1218
  topic,
1219
1219
  peerId
1220
1220
  }).catch((error) => log6.catch(error, {}, {
1221
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1221
+ file: "network-manager.ts",
1222
1222
  line: 155,
1223
1223
  scope: this,
1224
1224
  callSite: (f, a) => f(...a)
@@ -1230,7 +1230,7 @@ var NetworkManager = class {
1230
1230
  topic: PublicKey6.from(topic),
1231
1231
  count: this._swarms.size
1232
1232
  }, {
1233
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1233
+ file: "network-manager.ts",
1234
1234
  line: 160,
1235
1235
  scope: this,
1236
1236
  callSite: (f, a) => f(...a)
@@ -1245,7 +1245,7 @@ var NetworkManager = class {
1245
1245
  log6.warn("swarm not open", {
1246
1246
  topic: PublicKey6.from(topic)
1247
1247
  }, {
1248
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1248
+ file: "network-manager.ts",
1249
1249
  line: 172,
1250
1250
  scope: this,
1251
1251
  callSite: (f, a) => f(...a)
@@ -1255,7 +1255,7 @@ var NetworkManager = class {
1255
1255
  log6("leaving", {
1256
1256
  topic: PublicKey6.from(topic)
1257
1257
  }, {
1258
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1258
+ file: "network-manager.ts",
1259
1259
  line: 176,
1260
1260
  scope: this,
1261
1261
  callSite: (f, a) => f(...a)
@@ -1276,7 +1276,7 @@ var NetworkManager = class {
1276
1276
  topic: PublicKey6.from(topic),
1277
1277
  count: this._swarms.size
1278
1278
  }, {
1279
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1279
+ file: "network-manager.ts",
1280
1280
  line: 190,
1281
1281
  scope: this,
1282
1282
  callSite: (f, a) => f(...a)
@@ -1328,7 +1328,7 @@ var MMSTTopology = class {
1328
1328
  const { connected, candidates } = this._controller.getState();
1329
1329
  if (this._sampleCollected || connected.length > this._maxPeers || candidates.length > 0) {
1330
1330
  log7("Running the algorithm.", {}, {
1331
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1331
+ file: "mmst-topology.ts",
1332
1332
  line: 55,
1333
1333
  scope: this,
1334
1334
  callSite: (f, a) => f(...a)
@@ -1342,7 +1342,7 @@ var MMSTTopology = class {
1342
1342
  const { connected } = this._controller.getState();
1343
1343
  const accept = connected.length < this._maxPeers;
1344
1344
  log7(`Offer ${peer} accept=${accept}`, {}, {
1345
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1345
+ file: "mmst-topology.ts",
1346
1346
  line: 65,
1347
1347
  scope: this,
1348
1348
  callSite: (f, a) => f(...a)
@@ -1358,7 +1358,7 @@ var MMSTTopology = class {
1358
1358
  const sorted = sortByXorDistance(connected, ownPeerId).reverse().slice(0, this._maxPeers - connected.length);
1359
1359
  for (const peer of sorted) {
1360
1360
  log7(`Disconnect ${peer}.`, {}, {
1361
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1361
+ file: "mmst-topology.ts",
1362
1362
  line: 83,
1363
1363
  scope: this,
1364
1364
  callSite: (f, a) => f(...a)
@@ -1370,7 +1370,7 @@ var MMSTTopology = class {
1370
1370
  const sorted1 = sortByXorDistance(sample, ownPeerId).slice(0, this._originateConnections - connected.length);
1371
1371
  for (const peer1 of sorted1) {
1372
1372
  log7(`Connect ${peer1}.`, {}, {
1373
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1373
+ file: "mmst-topology.ts",
1374
1374
  line: 91,
1375
1375
  scope: this,
1376
1376
  callSite: (f, a) => f(...a)
@@ -1404,7 +1404,7 @@ var StarTopology = class {
1404
1404
  const { candidates, connected, ownPeerId } = this._controller.getState();
1405
1405
  if (!ownPeerId.equals(this._centralPeer)) {
1406
1406
  log8("leaf peer dropping all connections apart from central peer.", {}, {
1407
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1407
+ file: "star-topology.ts",
1408
1408
  line: 33,
1409
1409
  scope: this,
1410
1410
  callSite: (f, a) => f(...a)
@@ -1414,7 +1414,7 @@ var StarTopology = class {
1414
1414
  log8("dropping connection", {
1415
1415
  peer
1416
1416
  }, {
1417
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1417
+ file: "star-topology.ts",
1418
1418
  line: 38,
1419
1419
  scope: this,
1420
1420
  callSite: (f, a) => f(...a)
@@ -1428,7 +1428,7 @@ var StarTopology = class {
1428
1428
  log8("connecting to peer", {
1429
1429
  peer: peer1
1430
1430
  }, {
1431
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1431
+ file: "star-topology.ts",
1432
1432
  line: 47,
1433
1433
  scope: this,
1434
1434
  callSite: (f, a) => f(...a)
@@ -1445,7 +1445,7 @@ var StarTopology = class {
1445
1445
  isCentral: peer.equals(this._centralPeer),
1446
1446
  isSelfCentral: ownPeerId.equals(this._centralPeer)
1447
1447
  }, {
1448
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1448
+ file: "star-topology.ts",
1449
1449
  line: 56,
1450
1450
  scope: this,
1451
1451
  callSite: (f, a) => f(...a)
@@ -1499,7 +1499,7 @@ var _MemoryTransport = class {
1499
1499
  this._destroyed = false;
1500
1500
  this._instanceId = PublicKey7.random();
1501
1501
  log9("creating", {}, {
1502
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1502
+ file: "memory-transport.ts",
1503
1503
  line: 64,
1504
1504
  scope: this,
1505
1505
  callSite: (f, a) => f(...a)
@@ -1509,7 +1509,7 @@ var _MemoryTransport = class {
1509
1509
  if (this.options.initiator) {
1510
1510
  setTimeout(async () => {
1511
1511
  log9("sending signal", {}, {
1512
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1512
+ file: "memory-transport.ts",
1513
1513
  line: 73,
1514
1514
  scope: this,
1515
1515
  callSite: (f, a) => f(...a)
@@ -1538,7 +1538,7 @@ var _MemoryTransport = class {
1538
1538
  this._remoteConnection._remoteConnection = this;
1539
1539
  this._remoteConnection._remoteInstanceId = this._instanceId;
1540
1540
  log9("connected", {}, {
1541
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1541
+ file: "memory-transport.ts",
1542
1542
  line: 102,
1543
1543
  scope: this,
1544
1544
  callSite: (f, a) => f(...a)
@@ -1556,7 +1556,7 @@ var _MemoryTransport = class {
1556
1556
  }
1557
1557
  async destroy() {
1558
1558
  log9("closing", {}, {
1559
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1559
+ file: "memory-transport.ts",
1560
1560
  line: 123,
1561
1561
  scope: this,
1562
1562
  callSite: (f, a) => f(...a)
@@ -1565,7 +1565,7 @@ var _MemoryTransport = class {
1565
1565
  _MemoryTransport._connections.delete(this._instanceId);
1566
1566
  if (this._remoteConnection) {
1567
1567
  log9("closing", {}, {
1568
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1568
+ file: "memory-transport.ts",
1569
1569
  line: 128,
1570
1570
  scope: this,
1571
1571
  callSite: (f, a) => f(...a)
@@ -1578,7 +1578,7 @@ var _MemoryTransport = class {
1578
1578
  this._remoteConnection._remoteConnection = void 0;
1579
1579
  this._remoteConnection = void 0;
1580
1580
  log9("closed", {}, {
1581
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1581
+ file: "memory-transport.ts",
1582
1582
  line: 146,
1583
1583
  scope: this,
1584
1584
  callSite: (f, a) => f(...a)
@@ -1586,7 +1586,7 @@ var _MemoryTransport = class {
1586
1586
  }
1587
1587
  this.closed.emit();
1588
1588
  log9("closed", {}, {
1589
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1589
+ file: "memory-transport.ts",
1590
1590
  line: 150,
1591
1591
  scope: this,
1592
1592
  callSite: (f, a) => f(...a)
@@ -1596,7 +1596,7 @@ var _MemoryTransport = class {
1596
1596
  log9("received signal", {
1597
1597
  payload
1598
1598
  }, {
1599
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1599
+ file: "memory-transport.ts",
1600
1600
  line: 154,
1601
1601
  scope: this,
1602
1602
  callSite: (f, a) => f(...a)
@@ -1643,7 +1643,7 @@ var WebRTCTransport = class {
1643
1643
  this.connected = new Event7();
1644
1644
  this.errors = new ErrorStream4();
1645
1645
  log10("created connection", params, {
1646
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1646
+ file: "webrtc-transport.ts",
1647
1647
  line: 34,
1648
1648
  scope: this,
1649
1649
  callSite: (f, a) => f(...a)
@@ -1655,7 +1655,7 @@ var WebRTCTransport = class {
1655
1655
  });
1656
1656
  this._peer.on("signal", async (data) => {
1657
1657
  log10("signal", data, {
1658
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1658
+ file: "webrtc-transport.ts",
1659
1659
  line: 42,
1660
1660
  scope: this,
1661
1661
  callSite: (f, a) => f(...a)
@@ -1668,7 +1668,7 @@ var WebRTCTransport = class {
1668
1668
  });
1669
1669
  this._peer.on("connect", () => {
1670
1670
  log10("connected", {}, {
1671
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1671
+ file: "webrtc-transport.ts",
1672
1672
  line: 47,
1673
1673
  scope: this,
1674
1674
  callSite: (f, a) => f(...a)
@@ -1678,7 +1678,7 @@ var WebRTCTransport = class {
1678
1678
  });
1679
1679
  this._peer.on("close", async () => {
1680
1680
  log10("closed", {}, {
1681
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1681
+ file: "webrtc-transport.ts",
1682
1682
  line: 53,
1683
1683
  scope: this,
1684
1684
  callSite: (f, a) => f(...a)
@@ -1693,7 +1693,7 @@ var WebRTCTransport = class {
1693
1693
  }
1694
1694
  async destroy() {
1695
1695
  log10("closing...", {}, {
1696
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1696
+ file: "webrtc-transport.ts",
1697
1697
  line: 65,
1698
1698
  scope: this,
1699
1699
  callSite: (f, a) => f(...a)
@@ -1702,7 +1702,7 @@ var WebRTCTransport = class {
1702
1702
  this._peer.destroy();
1703
1703
  this.closed.emit();
1704
1704
  log10("closed", {}, {
1705
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1705
+ file: "webrtc-transport.ts",
1706
1706
  line: 69,
1707
1707
  scope: this,
1708
1708
  callSite: (f, a) => f(...a)
@@ -1814,7 +1814,7 @@ var WebRTCTransportService = class {
1814
1814
  await ((_b = this.transports.get(proxyId)) == null ? void 0 : _b.stream.end());
1815
1815
  this.transports.delete(proxyId);
1816
1816
  log11("Closed.", {}, {
1817
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-service.ts",
1817
+ file: "webrtc-transport-service.ts",
1818
1818
  line: 108,
1819
1819
  scope: this,
1820
1820
  callSite: (f, a) => f(...a)
@@ -1844,7 +1844,7 @@ var WebRTCTransportProxy = class {
1844
1844
  this._serviceStream.waitUntilReady().then(() => {
1845
1845
  this._serviceStream.subscribe(async (event) => {
1846
1846
  log12("WebRTCTransportProxy: event", event, {
1847
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1847
+ file: "webrtc-transport-proxy.ts",
1848
1848
  line: 46,
1849
1849
  scope: this,
1850
1850
  callSite: (f, a) => f(...a)
@@ -1865,7 +1865,7 @@ var WebRTCTransportProxy = class {
1865
1865
  });
1866
1866
  } catch (err) {
1867
1867
  log12.catch(err, {}, {
1868
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1868
+ file: "webrtc-transport-proxy.ts",
1869
1869
  line: 63,
1870
1870
  scope: this,
1871
1871
  callSite: (f, a) => f(...a)
@@ -1873,7 +1873,7 @@ var WebRTCTransportProxy = class {
1873
1873
  }
1874
1874
  });
1875
1875
  }, (error) => log12.catch(error, {}, {
1876
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1876
+ file: "webrtc-transport-proxy.ts",
1877
1877
  line: 67,
1878
1878
  scope: this,
1879
1879
  callSite: (f, a) => f(...a)
@@ -1917,7 +1917,7 @@ var WebRTCTransportProxy = class {
1917
1917
  });
1918
1918
  } catch (err) {
1919
1919
  log12.catch(err, {}, {
1920
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1920
+ file: "webrtc-transport-proxy.ts",
1921
1921
  line: 117,
1922
1922
  scope: this,
1923
1923
  callSite: (f, a) => f(...a)
@@ -1993,3 +1993,4 @@ export {
1993
1993
  createTeleportProtocolFactory,
1994
1994
  createWebRTCTransportFactory
1995
1995
  };
1996
+ //# sourceMappingURL=index.mjs.map