@dxos/network-manager 0.1.18 → 0.1.19
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/index.mjs +79 -78
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +73 -72
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/node/index.cjs +79 -78
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +73 -72
- package/dist/lib/node/testing/index.cjs.map +7 -0
- package/package.json +16 -16
|
@@ -149,7 +149,7 @@ var Connection = class {
|
|
|
149
149
|
(0, import_log.log)("closing...", {
|
|
150
150
|
peerId: this.ownId
|
|
151
151
|
}, {
|
|
152
|
-
file: "
|
|
152
|
+
file: "connection.ts",
|
|
153
153
|
line: 142,
|
|
154
154
|
scope: this,
|
|
155
155
|
callSite: (f, a) => f(...a)
|
|
@@ -158,7 +158,7 @@ var Connection = class {
|
|
|
158
158
|
await this._protocol.destroy();
|
|
159
159
|
} catch (err) {
|
|
160
160
|
import_log.log.catch(err, {}, {
|
|
161
|
-
file: "
|
|
161
|
+
file: "connection.ts",
|
|
162
162
|
line: 148,
|
|
163
163
|
scope: this,
|
|
164
164
|
callSite: (f, a) => f(...a)
|
|
@@ -168,7 +168,7 @@ var Connection = class {
|
|
|
168
168
|
await ((_a = this._transport) == null ? void 0 : _a.destroy());
|
|
169
169
|
} catch (err1) {
|
|
170
170
|
import_log.log.catch(err1, {}, {
|
|
171
|
-
file: "
|
|
171
|
+
file: "connection.ts",
|
|
172
172
|
line: 155,
|
|
173
173
|
scope: this,
|
|
174
174
|
callSite: (f, a) => f(...a)
|
|
@@ -177,7 +177,7 @@ var Connection = class {
|
|
|
177
177
|
(0, import_log.log)("closed", {
|
|
178
178
|
peerId: this.ownId
|
|
179
179
|
}, {
|
|
180
|
-
file: "
|
|
180
|
+
file: "connection.ts",
|
|
181
181
|
line: 158,
|
|
182
182
|
scope: this,
|
|
183
183
|
callSite: (f, a) => f(...a)
|
|
@@ -189,7 +189,7 @@ var Connection = class {
|
|
|
189
189
|
(0, import_node_assert.default)(msg.sessionId);
|
|
190
190
|
if (!msg.sessionId.equals(this.sessionId)) {
|
|
191
191
|
(0, import_log.log)("dropping signal for incorrect session id", {}, {
|
|
192
|
-
file: "
|
|
192
|
+
file: "connection.ts",
|
|
193
193
|
line: 165,
|
|
194
194
|
scope: this,
|
|
195
195
|
callSite: (f, a) => f(...a)
|
|
@@ -205,7 +205,7 @@ var Connection = class {
|
|
|
205
205
|
remoteId: this.remoteId,
|
|
206
206
|
msg: msg.data
|
|
207
207
|
}, {
|
|
208
|
-
file: "
|
|
208
|
+
file: "connection.ts",
|
|
209
209
|
line: 173,
|
|
210
210
|
scope: this,
|
|
211
211
|
callSite: (f, a) => f(...a)
|
|
@@ -219,7 +219,7 @@ var Connection = class {
|
|
|
219
219
|
remoteId: this.remoteId,
|
|
220
220
|
msg: msg.data
|
|
221
221
|
}, {
|
|
222
|
-
file: "
|
|
222
|
+
file: "connection.ts",
|
|
223
223
|
line: 179,
|
|
224
224
|
scope: this,
|
|
225
225
|
callSite: (f, a) => f(...a)
|
|
@@ -273,7 +273,7 @@ var MessageRouter = class {
|
|
|
273
273
|
to: recipient,
|
|
274
274
|
msg: message
|
|
275
275
|
}, {
|
|
276
|
-
file: "
|
|
276
|
+
file: "message-router.ts",
|
|
277
277
|
line: 67,
|
|
278
278
|
scope: this,
|
|
279
279
|
callSite: (f, a) => f(...a)
|
|
@@ -331,7 +331,7 @@ var MessageRouter = class {
|
|
|
331
331
|
to: recipient,
|
|
332
332
|
msg: networkMessage
|
|
333
333
|
}, {
|
|
334
|
-
file: "
|
|
334
|
+
file: "message-router.ts",
|
|
335
335
|
line: 117,
|
|
336
336
|
scope: this,
|
|
337
337
|
callSite: (f, a) => f(...a)
|
|
@@ -362,7 +362,7 @@ var MessageRouter = class {
|
|
|
362
362
|
(0, import_log2.log)("resolving", {
|
|
363
363
|
answer: message.data.answer
|
|
364
364
|
}, {
|
|
365
|
-
file: "
|
|
365
|
+
file: "message-router.ts",
|
|
366
366
|
line: 146,
|
|
367
367
|
scope: this,
|
|
368
368
|
callSite: (f, a) => f(...a)
|
|
@@ -445,7 +445,7 @@ var Peer = class {
|
|
|
445
445
|
topic: this.topic,
|
|
446
446
|
peerId: this.localPeerId
|
|
447
447
|
}, {
|
|
448
|
-
file: "
|
|
448
|
+
file: "peer.ts",
|
|
449
449
|
line: 83,
|
|
450
450
|
scope: this,
|
|
451
451
|
callSite: (f, a) => f(...a)
|
|
@@ -472,7 +472,7 @@ var Peer = class {
|
|
|
472
472
|
remoteId: this.id,
|
|
473
473
|
err
|
|
474
474
|
}, {
|
|
475
|
-
file: "
|
|
475
|
+
file: "peer.ts",
|
|
476
476
|
line: 107,
|
|
477
477
|
scope: this,
|
|
478
478
|
callSite: (f, a) => f(...a)
|
|
@@ -498,7 +498,7 @@ var Peer = class {
|
|
|
498
498
|
peerId: this.id,
|
|
499
499
|
sessionId
|
|
500
500
|
}, {
|
|
501
|
-
file: "
|
|
501
|
+
file: "peer.ts",
|
|
502
502
|
line: 125,
|
|
503
503
|
scope: this,
|
|
504
504
|
callSite: (f, a) => f(...a)
|
|
@@ -521,14 +521,14 @@ var Peer = class {
|
|
|
521
521
|
ownId: this.localPeerId,
|
|
522
522
|
remoteId: this.id
|
|
523
523
|
}, {
|
|
524
|
-
file: "
|
|
524
|
+
file: "peer.ts",
|
|
525
525
|
line: 137,
|
|
526
526
|
scope: this,
|
|
527
527
|
callSite: (f, a) => f(...a)
|
|
528
528
|
});
|
|
529
529
|
if (connection.state !== ConnectionState.INITIAL) {
|
|
530
530
|
(0, import_log3.log)("ignoring response", {}, {
|
|
531
|
-
file: "
|
|
531
|
+
file: "peer.ts",
|
|
532
532
|
line: 139,
|
|
533
533
|
scope: this,
|
|
534
534
|
callSite: (f, a) => f(...a)
|
|
@@ -548,7 +548,7 @@ var Peer = class {
|
|
|
548
548
|
remoteId: this.id,
|
|
549
549
|
err
|
|
550
550
|
}, {
|
|
551
|
-
file: "
|
|
551
|
+
file: "peer.ts",
|
|
552
552
|
line: 150,
|
|
553
553
|
scope: this,
|
|
554
554
|
callSite: (f, a) => f(...a)
|
|
@@ -567,7 +567,7 @@ var Peer = class {
|
|
|
567
567
|
initiator,
|
|
568
568
|
sessionId
|
|
569
569
|
}, {
|
|
570
|
-
file: "
|
|
570
|
+
file: "peer.ts",
|
|
571
571
|
line: 164,
|
|
572
572
|
scope: this,
|
|
573
573
|
callSite: (f, a) => f(...a)
|
|
@@ -602,7 +602,7 @@ var Peer = class {
|
|
|
602
602
|
remoteId: this.id,
|
|
603
603
|
initiator
|
|
604
604
|
}, {
|
|
605
|
-
file: "
|
|
605
|
+
file: "peer.ts",
|
|
606
606
|
line: 193,
|
|
607
607
|
scope: this,
|
|
608
608
|
callSite: (f, a) => f(...a)
|
|
@@ -622,7 +622,7 @@ var Peer = class {
|
|
|
622
622
|
initiator,
|
|
623
623
|
err
|
|
624
624
|
}, {
|
|
625
|
-
file: "
|
|
625
|
+
file: "peer.ts",
|
|
626
626
|
line: 203,
|
|
627
627
|
scope: this,
|
|
628
628
|
callSite: (f, a) => f(...a)
|
|
@@ -641,7 +641,7 @@ var Peer = class {
|
|
|
641
641
|
peerId: this.id,
|
|
642
642
|
sessionId: connection.sessionId
|
|
643
643
|
}, {
|
|
644
|
-
file: "
|
|
644
|
+
file: "peer.ts",
|
|
645
645
|
line: 219,
|
|
646
646
|
scope: this,
|
|
647
647
|
callSite: (f, a) => f(...a)
|
|
@@ -651,7 +651,7 @@ var Peer = class {
|
|
|
651
651
|
peerId: this.id,
|
|
652
652
|
sessionId: connection.sessionId
|
|
653
653
|
}, {
|
|
654
|
-
file: "
|
|
654
|
+
file: "peer.ts",
|
|
655
655
|
line: 225,
|
|
656
656
|
scope: this,
|
|
657
657
|
callSite: (f, a) => f(...a)
|
|
@@ -662,7 +662,7 @@ var Peer = class {
|
|
|
662
662
|
(0, import_log3.log)("dropping signal message for non-existent connection", {
|
|
663
663
|
message
|
|
664
664
|
}, {
|
|
665
|
-
file: "
|
|
665
|
+
file: "peer.ts",
|
|
666
666
|
line: 230,
|
|
667
667
|
scope: this,
|
|
668
668
|
callSite: (f, a) => f(...a)
|
|
@@ -677,7 +677,7 @@ var Peer = class {
|
|
|
677
677
|
peerId: this.id,
|
|
678
678
|
topic: this.topic
|
|
679
679
|
}, {
|
|
680
|
-
file: "
|
|
680
|
+
file: "peer.ts",
|
|
681
681
|
line: 238,
|
|
682
682
|
scope: this,
|
|
683
683
|
callSite: (f, a) => f(...a)
|
|
@@ -721,7 +721,7 @@ var Swarm = class {
|
|
|
721
721
|
(0, import_log4.log)("creating swarm", {
|
|
722
722
|
peerId: _ownPeerId
|
|
723
723
|
}, {
|
|
724
|
-
file: "
|
|
724
|
+
file: "swarm.ts",
|
|
725
725
|
line: 80,
|
|
726
726
|
scope: this,
|
|
727
727
|
callSite: (f, a) => f(...a)
|
|
@@ -738,7 +738,7 @@ var Swarm = class {
|
|
|
738
738
|
payloadType: "dxos.mesh.swarm.SwarmMessage",
|
|
739
739
|
onMessage: async (message) => await this._swarmMessenger.receiveMessage(message)
|
|
740
740
|
}).catch((error) => import_log4.log.catch(error, {}, {
|
|
741
|
-
file: "
|
|
741
|
+
file: "swarm.ts",
|
|
742
742
|
line: 96,
|
|
743
743
|
scope: this,
|
|
744
744
|
callSite: (f, a) => f(...a)
|
|
@@ -758,7 +758,7 @@ var Swarm = class {
|
|
|
758
758
|
}
|
|
759
759
|
async destroy() {
|
|
760
760
|
(0, import_log4.log)("destroying...", {}, {
|
|
761
|
-
file: "
|
|
761
|
+
file: "swarm.ts",
|
|
762
762
|
line: 124,
|
|
763
763
|
scope: this,
|
|
764
764
|
callSite: (f, a) => f(...a)
|
|
@@ -767,7 +767,7 @@ var Swarm = class {
|
|
|
767
767
|
await this._topology.destroy();
|
|
768
768
|
await Promise.all(Array.from(this._peers.keys()).map((key) => this._destroyPeer(key)));
|
|
769
769
|
(0, import_log4.log)("destroyed", {}, {
|
|
770
|
-
file: "
|
|
770
|
+
file: "swarm.ts",
|
|
771
771
|
line: 128,
|
|
772
772
|
scope: this,
|
|
773
773
|
callSite: (f, a) => f(...a)
|
|
@@ -781,7 +781,7 @@ var Swarm = class {
|
|
|
781
781
|
previous: getClassName(this._topology),
|
|
782
782
|
topology: getClassName(topology)
|
|
783
783
|
}, {
|
|
784
|
-
file: "
|
|
784
|
+
file: "swarm.ts",
|
|
785
785
|
line: 135,
|
|
786
786
|
scope: this,
|
|
787
787
|
callSite: (f, a) => f(...a)
|
|
@@ -833,14 +833,14 @@ var Swarm = class {
|
|
|
833
833
|
(0, import_log4.log)("swarm event", {
|
|
834
834
|
swarmEvent
|
|
835
835
|
}, {
|
|
836
|
-
file: "
|
|
836
|
+
file: "swarm.ts",
|
|
837
837
|
line: 199,
|
|
838
838
|
scope: this,
|
|
839
839
|
callSite: (f, a) => f(...a)
|
|
840
840
|
});
|
|
841
841
|
if (this._ctx.disposed) {
|
|
842
842
|
import_log4.log.warn("ignored for destroyed swarm", {}, {
|
|
843
|
-
file: "
|
|
843
|
+
file: "swarm.ts",
|
|
844
844
|
line: 201,
|
|
845
845
|
scope: this,
|
|
846
846
|
callSite: (f, a) => f(...a)
|
|
@@ -852,7 +852,7 @@ var Swarm = class {
|
|
|
852
852
|
(0, import_log4.log)("new peer", {
|
|
853
853
|
peerId
|
|
854
854
|
}, {
|
|
855
|
-
file: "
|
|
855
|
+
file: "swarm.ts",
|
|
856
856
|
line: 207,
|
|
857
857
|
scope: this,
|
|
858
858
|
callSite: (f, a) => f(...a)
|
|
@@ -877,14 +877,14 @@ var Swarm = class {
|
|
|
877
877
|
(0, import_log4.log)("offer", {
|
|
878
878
|
message
|
|
879
879
|
}, {
|
|
880
|
-
file: "
|
|
880
|
+
file: "swarm.ts",
|
|
881
881
|
line: 226,
|
|
882
882
|
scope: this,
|
|
883
883
|
callSite: (f, a) => f(...a)
|
|
884
884
|
});
|
|
885
885
|
if (this._ctx.disposed) {
|
|
886
886
|
import_log4.log.info("ignored for destroyed swarm", {}, {
|
|
887
|
-
file: "
|
|
887
|
+
file: "swarm.ts",
|
|
888
888
|
line: 228,
|
|
889
889
|
scope: this,
|
|
890
890
|
callSite: (f, a) => f(...a)
|
|
@@ -898,7 +898,7 @@ var Swarm = class {
|
|
|
898
898
|
(0, import_log4.log)("rejecting offer with incorrect peerId", {
|
|
899
899
|
message
|
|
900
900
|
}, {
|
|
901
|
-
file: "
|
|
901
|
+
file: "swarm.ts",
|
|
902
902
|
line: 235,
|
|
903
903
|
scope: this,
|
|
904
904
|
callSite: (f, a) => f(...a)
|
|
@@ -911,7 +911,7 @@ var Swarm = class {
|
|
|
911
911
|
(0, import_log4.log)("rejecting offer with incorrect topic", {
|
|
912
912
|
message
|
|
913
913
|
}, {
|
|
914
|
-
file: "
|
|
914
|
+
file: "swarm.ts",
|
|
915
915
|
line: 239,
|
|
916
916
|
scope: this,
|
|
917
917
|
callSite: (f, a) => f(...a)
|
|
@@ -930,14 +930,14 @@ var Swarm = class {
|
|
|
930
930
|
(0, import_log4.log)("signal", {
|
|
931
931
|
message
|
|
932
932
|
}, {
|
|
933
|
-
file: "
|
|
933
|
+
file: "swarm.ts",
|
|
934
934
|
line: 250,
|
|
935
935
|
scope: this,
|
|
936
936
|
callSite: (f, a) => f(...a)
|
|
937
937
|
});
|
|
938
938
|
if (this._ctx.disposed) {
|
|
939
939
|
import_log4.log.info("ignored for destroyed swarm", {}, {
|
|
940
|
-
file: "
|
|
940
|
+
file: "swarm.ts",
|
|
941
941
|
line: 252,
|
|
942
942
|
scope: this,
|
|
943
943
|
callSite: (f, a) => f(...a)
|
|
@@ -966,7 +966,7 @@ var Swarm = class {
|
|
|
966
966
|
await this._initiateConnection(peer);
|
|
967
967
|
} catch (err) {
|
|
968
968
|
import_log4.log.warn("initiation error", err, {
|
|
969
|
-
file: "
|
|
969
|
+
file: "swarm.ts",
|
|
970
970
|
line: 287,
|
|
971
971
|
scope: this,
|
|
972
972
|
callSite: (f, a) => f(...a)
|
|
@@ -990,7 +990,7 @@ var Swarm = class {
|
|
|
990
990
|
(0, import_log4.log)("initiation delay", {
|
|
991
991
|
remoteId
|
|
992
992
|
}, {
|
|
993
|
-
file: "
|
|
993
|
+
file: "swarm.ts",
|
|
994
994
|
line: 312,
|
|
995
995
|
scope: this,
|
|
996
996
|
callSite: (f, a) => f(...a)
|
|
@@ -1007,7 +1007,7 @@ var Swarm = class {
|
|
|
1007
1007
|
(0, import_log4.log)("initiating connection...", {
|
|
1008
1008
|
remoteId
|
|
1009
1009
|
}, {
|
|
1010
|
-
file: "
|
|
1010
|
+
file: "swarm.ts",
|
|
1011
1011
|
line: 326,
|
|
1012
1012
|
scope: this,
|
|
1013
1013
|
callSite: (f, a) => f(...a)
|
|
@@ -1017,7 +1017,7 @@ var Swarm = class {
|
|
|
1017
1017
|
(0, import_log4.log)("initiated", {
|
|
1018
1018
|
remoteId
|
|
1019
1019
|
}, {
|
|
1020
|
-
file: "
|
|
1020
|
+
file: "swarm.ts",
|
|
1021
1021
|
line: 329,
|
|
1022
1022
|
scope: this,
|
|
1023
1023
|
callSite: (f, a) => f(...a)
|
|
@@ -1072,7 +1072,7 @@ var SwarmMapper = class {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
_update() {
|
|
1074
1074
|
(0, import_log5.log)("updating swarm", {}, {
|
|
1075
|
-
file: "
|
|
1075
|
+
file: "swarm-mapper.ts",
|
|
1076
1076
|
line: 75,
|
|
1077
1077
|
scope: this,
|
|
1078
1078
|
callSite: (f, a) => f(...a)
|
|
@@ -1096,7 +1096,7 @@ var SwarmMapper = class {
|
|
|
1096
1096
|
directConnections: this._swarm.connections.length,
|
|
1097
1097
|
totalPeersInSwarm: this._peers.size
|
|
1098
1098
|
}, {
|
|
1099
|
-
file: "
|
|
1099
|
+
file: "swarm-mapper.ts",
|
|
1100
1100
|
line: 116,
|
|
1101
1101
|
scope: this,
|
|
1102
1102
|
callSite: (f, a) => f(...a)
|
|
@@ -1209,7 +1209,7 @@ var NetworkManager = class {
|
|
|
1209
1209
|
for (const topic of this._swarms.keys()) {
|
|
1210
1210
|
await this.leaveSwarm(topic).catch((err) => {
|
|
1211
1211
|
(0, import_log6.log)(err, {}, {
|
|
1212
|
-
file: "
|
|
1212
|
+
file: "network-manager.ts",
|
|
1213
1213
|
line: 122,
|
|
1214
1214
|
scope: this,
|
|
1215
1215
|
callSite: (f, a) => f(...a)
|
|
@@ -1232,7 +1232,7 @@ var NetworkManager = class {
|
|
|
1232
1232
|
peerId,
|
|
1233
1233
|
topology: topology.toString()
|
|
1234
1234
|
}, {
|
|
1235
|
-
file: "
|
|
1235
|
+
file: "network-manager.ts",
|
|
1236
1236
|
line: 148,
|
|
1237
1237
|
scope: this,
|
|
1238
1238
|
callSite: (f, a) => f(...a)
|
|
@@ -1242,7 +1242,7 @@ var NetworkManager = class {
|
|
|
1242
1242
|
(0, import_log6.log)("swarm error", {
|
|
1243
1243
|
error
|
|
1244
1244
|
}, {
|
|
1245
|
-
file: "
|
|
1245
|
+
file: "network-manager.ts",
|
|
1246
1246
|
line: 151,
|
|
1247
1247
|
scope: this,
|
|
1248
1248
|
callSite: (f, a) => f(...a)
|
|
@@ -1253,7 +1253,7 @@ var NetworkManager = class {
|
|
|
1253
1253
|
topic,
|
|
1254
1254
|
peerId
|
|
1255
1255
|
}).catch((error) => import_log6.log.catch(error, {}, {
|
|
1256
|
-
file: "
|
|
1256
|
+
file: "network-manager.ts",
|
|
1257
1257
|
line: 155,
|
|
1258
1258
|
scope: this,
|
|
1259
1259
|
callSite: (f, a) => f(...a)
|
|
@@ -1265,7 +1265,7 @@ var NetworkManager = class {
|
|
|
1265
1265
|
topic: import_keys6.PublicKey.from(topic),
|
|
1266
1266
|
count: this._swarms.size
|
|
1267
1267
|
}, {
|
|
1268
|
-
file: "
|
|
1268
|
+
file: "network-manager.ts",
|
|
1269
1269
|
line: 160,
|
|
1270
1270
|
scope: this,
|
|
1271
1271
|
callSite: (f, a) => f(...a)
|
|
@@ -1280,7 +1280,7 @@ var NetworkManager = class {
|
|
|
1280
1280
|
import_log6.log.warn("swarm not open", {
|
|
1281
1281
|
topic: import_keys6.PublicKey.from(topic)
|
|
1282
1282
|
}, {
|
|
1283
|
-
file: "
|
|
1283
|
+
file: "network-manager.ts",
|
|
1284
1284
|
line: 172,
|
|
1285
1285
|
scope: this,
|
|
1286
1286
|
callSite: (f, a) => f(...a)
|
|
@@ -1290,7 +1290,7 @@ var NetworkManager = class {
|
|
|
1290
1290
|
(0, import_log6.log)("leaving", {
|
|
1291
1291
|
topic: import_keys6.PublicKey.from(topic)
|
|
1292
1292
|
}, {
|
|
1293
|
-
file: "
|
|
1293
|
+
file: "network-manager.ts",
|
|
1294
1294
|
line: 176,
|
|
1295
1295
|
scope: this,
|
|
1296
1296
|
callSite: (f, a) => f(...a)
|
|
@@ -1311,7 +1311,7 @@ var NetworkManager = class {
|
|
|
1311
1311
|
topic: import_keys6.PublicKey.from(topic),
|
|
1312
1312
|
count: this._swarms.size
|
|
1313
1313
|
}, {
|
|
1314
|
-
file: "
|
|
1314
|
+
file: "network-manager.ts",
|
|
1315
1315
|
line: 190,
|
|
1316
1316
|
scope: this,
|
|
1317
1317
|
callSite: (f, a) => f(...a)
|
|
@@ -1393,7 +1393,7 @@ var _MemoryTransport = class {
|
|
|
1393
1393
|
this._destroyed = false;
|
|
1394
1394
|
this._instanceId = import_keys7.PublicKey.random();
|
|
1395
1395
|
(0, import_log9.log)("creating", {}, {
|
|
1396
|
-
file: "
|
|
1396
|
+
file: "memory-transport.ts",
|
|
1397
1397
|
line: 64,
|
|
1398
1398
|
scope: this,
|
|
1399
1399
|
callSite: (f, a) => f(...a)
|
|
@@ -1403,7 +1403,7 @@ var _MemoryTransport = class {
|
|
|
1403
1403
|
if (this.options.initiator) {
|
|
1404
1404
|
setTimeout(async () => {
|
|
1405
1405
|
(0, import_log9.log)("sending signal", {}, {
|
|
1406
|
-
file: "
|
|
1406
|
+
file: "memory-transport.ts",
|
|
1407
1407
|
line: 73,
|
|
1408
1408
|
scope: this,
|
|
1409
1409
|
callSite: (f, a) => f(...a)
|
|
@@ -1432,7 +1432,7 @@ var _MemoryTransport = class {
|
|
|
1432
1432
|
this._remoteConnection._remoteConnection = this;
|
|
1433
1433
|
this._remoteConnection._remoteInstanceId = this._instanceId;
|
|
1434
1434
|
(0, import_log9.log)("connected", {}, {
|
|
1435
|
-
file: "
|
|
1435
|
+
file: "memory-transport.ts",
|
|
1436
1436
|
line: 102,
|
|
1437
1437
|
scope: this,
|
|
1438
1438
|
callSite: (f, a) => f(...a)
|
|
@@ -1450,7 +1450,7 @@ var _MemoryTransport = class {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
async destroy() {
|
|
1452
1452
|
(0, import_log9.log)("closing", {}, {
|
|
1453
|
-
file: "
|
|
1453
|
+
file: "memory-transport.ts",
|
|
1454
1454
|
line: 123,
|
|
1455
1455
|
scope: this,
|
|
1456
1456
|
callSite: (f, a) => f(...a)
|
|
@@ -1459,7 +1459,7 @@ var _MemoryTransport = class {
|
|
|
1459
1459
|
_MemoryTransport._connections.delete(this._instanceId);
|
|
1460
1460
|
if (this._remoteConnection) {
|
|
1461
1461
|
(0, import_log9.log)("closing", {}, {
|
|
1462
|
-
file: "
|
|
1462
|
+
file: "memory-transport.ts",
|
|
1463
1463
|
line: 128,
|
|
1464
1464
|
scope: this,
|
|
1465
1465
|
callSite: (f, a) => f(...a)
|
|
@@ -1472,7 +1472,7 @@ var _MemoryTransport = class {
|
|
|
1472
1472
|
this._remoteConnection._remoteConnection = void 0;
|
|
1473
1473
|
this._remoteConnection = void 0;
|
|
1474
1474
|
(0, import_log9.log)("closed", {}, {
|
|
1475
|
-
file: "
|
|
1475
|
+
file: "memory-transport.ts",
|
|
1476
1476
|
line: 146,
|
|
1477
1477
|
scope: this,
|
|
1478
1478
|
callSite: (f, a) => f(...a)
|
|
@@ -1480,7 +1480,7 @@ var _MemoryTransport = class {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
this.closed.emit();
|
|
1482
1482
|
(0, import_log9.log)("closed", {}, {
|
|
1483
|
-
file: "
|
|
1483
|
+
file: "memory-transport.ts",
|
|
1484
1484
|
line: 150,
|
|
1485
1485
|
scope: this,
|
|
1486
1486
|
callSite: (f, a) => f(...a)
|
|
@@ -1490,7 +1490,7 @@ var _MemoryTransport = class {
|
|
|
1490
1490
|
(0, import_log9.log)("received signal", {
|
|
1491
1491
|
payload
|
|
1492
1492
|
}, {
|
|
1493
|
-
file: "
|
|
1493
|
+
file: "memory-transport.ts",
|
|
1494
1494
|
line: 154,
|
|
1495
1495
|
scope: this,
|
|
1496
1496
|
callSite: (f, a) => f(...a)
|
|
@@ -1537,7 +1537,7 @@ var WebRTCTransport = class {
|
|
|
1537
1537
|
this.connected = new import_async8.Event();
|
|
1538
1538
|
this.errors = new import_debug5.ErrorStream();
|
|
1539
1539
|
(0, import_log10.log)("created connection", params, {
|
|
1540
|
-
file: "
|
|
1540
|
+
file: "webrtc-transport.ts",
|
|
1541
1541
|
line: 34,
|
|
1542
1542
|
scope: this,
|
|
1543
1543
|
callSite: (f, a) => f(...a)
|
|
@@ -1549,7 +1549,7 @@ var WebRTCTransport = class {
|
|
|
1549
1549
|
});
|
|
1550
1550
|
this._peer.on("signal", async (data) => {
|
|
1551
1551
|
(0, import_log10.log)("signal", data, {
|
|
1552
|
-
file: "
|
|
1552
|
+
file: "webrtc-transport.ts",
|
|
1553
1553
|
line: 42,
|
|
1554
1554
|
scope: this,
|
|
1555
1555
|
callSite: (f, a) => f(...a)
|
|
@@ -1562,7 +1562,7 @@ var WebRTCTransport = class {
|
|
|
1562
1562
|
});
|
|
1563
1563
|
this._peer.on("connect", () => {
|
|
1564
1564
|
(0, import_log10.log)("connected", {}, {
|
|
1565
|
-
file: "
|
|
1565
|
+
file: "webrtc-transport.ts",
|
|
1566
1566
|
line: 47,
|
|
1567
1567
|
scope: this,
|
|
1568
1568
|
callSite: (f, a) => f(...a)
|
|
@@ -1572,7 +1572,7 @@ var WebRTCTransport = class {
|
|
|
1572
1572
|
});
|
|
1573
1573
|
this._peer.on("close", async () => {
|
|
1574
1574
|
(0, import_log10.log)("closed", {}, {
|
|
1575
|
-
file: "
|
|
1575
|
+
file: "webrtc-transport.ts",
|
|
1576
1576
|
line: 53,
|
|
1577
1577
|
scope: this,
|
|
1578
1578
|
callSite: (f, a) => f(...a)
|
|
@@ -1587,7 +1587,7 @@ var WebRTCTransport = class {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
async destroy() {
|
|
1589
1589
|
(0, import_log10.log)("closing...", {}, {
|
|
1590
|
-
file: "
|
|
1590
|
+
file: "webrtc-transport.ts",
|
|
1591
1591
|
line: 65,
|
|
1592
1592
|
scope: this,
|
|
1593
1593
|
callSite: (f, a) => f(...a)
|
|
@@ -1596,7 +1596,7 @@ var WebRTCTransport = class {
|
|
|
1596
1596
|
this._peer.destroy();
|
|
1597
1597
|
this.closed.emit();
|
|
1598
1598
|
(0, import_log10.log)("closed", {}, {
|
|
1599
|
-
file: "
|
|
1599
|
+
file: "webrtc-transport.ts",
|
|
1600
1600
|
line: 69,
|
|
1601
1601
|
scope: this,
|
|
1602
1602
|
callSite: (f, a) => f(...a)
|
|
@@ -1702,7 +1702,7 @@ var WebRTCTransportService = class {
|
|
|
1702
1702
|
await ((_b = this.transports.get(proxyId)) == null ? void 0 : _b.stream.end());
|
|
1703
1703
|
this.transports.delete(proxyId);
|
|
1704
1704
|
(0, import_log11.log)("Closed.", {}, {
|
|
1705
|
-
file: "
|
|
1705
|
+
file: "webrtc-transport-service.ts",
|
|
1706
1706
|
line: 108,
|
|
1707
1707
|
scope: this,
|
|
1708
1708
|
callSite: (f, a) => f(...a)
|
|
@@ -1732,7 +1732,7 @@ var WebRTCTransportProxy = class {
|
|
|
1732
1732
|
this._serviceStream.waitUntilReady().then(() => {
|
|
1733
1733
|
this._serviceStream.subscribe(async (event) => {
|
|
1734
1734
|
(0, import_log12.log)("WebRTCTransportProxy: event", event, {
|
|
1735
|
-
file: "
|
|
1735
|
+
file: "webrtc-transport-proxy.ts",
|
|
1736
1736
|
line: 46,
|
|
1737
1737
|
scope: this,
|
|
1738
1738
|
callSite: (f, a) => f(...a)
|
|
@@ -1753,7 +1753,7 @@ var WebRTCTransportProxy = class {
|
|
|
1753
1753
|
});
|
|
1754
1754
|
} catch (err) {
|
|
1755
1755
|
import_log12.log.catch(err, {}, {
|
|
1756
|
-
file: "
|
|
1756
|
+
file: "webrtc-transport-proxy.ts",
|
|
1757
1757
|
line: 63,
|
|
1758
1758
|
scope: this,
|
|
1759
1759
|
callSite: (f, a) => f(...a)
|
|
@@ -1761,7 +1761,7 @@ var WebRTCTransportProxy = class {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
});
|
|
1763
1763
|
}, (error) => import_log12.log.catch(error, {}, {
|
|
1764
|
-
file: "
|
|
1764
|
+
file: "webrtc-transport-proxy.ts",
|
|
1765
1765
|
line: 67,
|
|
1766
1766
|
scope: this,
|
|
1767
1767
|
callSite: (f, a) => f(...a)
|
|
@@ -1805,7 +1805,7 @@ var WebRTCTransportProxy = class {
|
|
|
1805
1805
|
});
|
|
1806
1806
|
} catch (err) {
|
|
1807
1807
|
import_log12.log.catch(err, {}, {
|
|
1808
|
-
file: "
|
|
1808
|
+
file: "webrtc-transport-proxy.ts",
|
|
1809
1809
|
line: 117,
|
|
1810
1810
|
scope: this,
|
|
1811
1811
|
callSite: (f, a) => f(...a)
|
|
@@ -1878,7 +1878,7 @@ var TestWireProtocol = class {
|
|
|
1878
1878
|
(0, import_log13.log)("create", {
|
|
1879
1879
|
remotePeerId: teleport.remotePeerId
|
|
1880
1880
|
}, {
|
|
1881
|
-
file: "
|
|
1881
|
+
file: "test-wire-protocol.ts",
|
|
1882
1882
|
line: 20,
|
|
1883
1883
|
scope: this,
|
|
1884
1884
|
callSite: (f, a) => f(...a)
|
|
@@ -1900,7 +1900,7 @@ var TestWireProtocol = class {
|
|
|
1900
1900
|
(0, import_log13.log)("waitForConnection", {
|
|
1901
1901
|
peerId
|
|
1902
1902
|
}, {
|
|
1903
|
-
file: "
|
|
1903
|
+
file: "test-wire-protocol.ts",
|
|
1904
1904
|
line: 35,
|
|
1905
1905
|
scope: this,
|
|
1906
1906
|
callSite: (f, a) => f(...a)
|
|
@@ -2031,3 +2031,4 @@ var TestSwarmConnection = class {
|
|
|
2031
2031
|
TestPeer,
|
|
2032
2032
|
TestSwarmConnection
|
|
2033
2033
|
});
|
|
2034
|
+
//# sourceMappingURL=index.cjs.map
|