@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
|
@@ -123,7 +123,7 @@ var Connection = class {
|
|
|
123
123
|
log("closing...", {
|
|
124
124
|
peerId: this.ownId
|
|
125
125
|
}, {
|
|
126
|
-
file: "
|
|
126
|
+
file: "connection.ts",
|
|
127
127
|
line: 142,
|
|
128
128
|
scope: this,
|
|
129
129
|
callSite: (f, a) => f(...a)
|
|
@@ -132,7 +132,7 @@ var Connection = class {
|
|
|
132
132
|
await this._protocol.destroy();
|
|
133
133
|
} catch (err) {
|
|
134
134
|
log.catch(err, {}, {
|
|
135
|
-
file: "
|
|
135
|
+
file: "connection.ts",
|
|
136
136
|
line: 148,
|
|
137
137
|
scope: this,
|
|
138
138
|
callSite: (f, a) => f(...a)
|
|
@@ -142,7 +142,7 @@ var Connection = class {
|
|
|
142
142
|
await ((_a = this._transport) == null ? void 0 : _a.destroy());
|
|
143
143
|
} catch (err1) {
|
|
144
144
|
log.catch(err1, {}, {
|
|
145
|
-
file: "
|
|
145
|
+
file: "connection.ts",
|
|
146
146
|
line: 155,
|
|
147
147
|
scope: this,
|
|
148
148
|
callSite: (f, a) => f(...a)
|
|
@@ -151,7 +151,7 @@ var Connection = class {
|
|
|
151
151
|
log("closed", {
|
|
152
152
|
peerId: this.ownId
|
|
153
153
|
}, {
|
|
154
|
-
file: "
|
|
154
|
+
file: "connection.ts",
|
|
155
155
|
line: 158,
|
|
156
156
|
scope: this,
|
|
157
157
|
callSite: (f, a) => f(...a)
|
|
@@ -163,7 +163,7 @@ var Connection = class {
|
|
|
163
163
|
assert(msg.sessionId);
|
|
164
164
|
if (!msg.sessionId.equals(this.sessionId)) {
|
|
165
165
|
log("dropping signal for incorrect session id", {}, {
|
|
166
|
-
file: "
|
|
166
|
+
file: "connection.ts",
|
|
167
167
|
line: 165,
|
|
168
168
|
scope: this,
|
|
169
169
|
callSite: (f, a) => f(...a)
|
|
@@ -179,7 +179,7 @@ var Connection = class {
|
|
|
179
179
|
remoteId: this.remoteId,
|
|
180
180
|
msg: msg.data
|
|
181
181
|
}, {
|
|
182
|
-
file: "
|
|
182
|
+
file: "connection.ts",
|
|
183
183
|
line: 173,
|
|
184
184
|
scope: this,
|
|
185
185
|
callSite: (f, a) => f(...a)
|
|
@@ -193,7 +193,7 @@ var Connection = class {
|
|
|
193
193
|
remoteId: this.remoteId,
|
|
194
194
|
msg: msg.data
|
|
195
195
|
}, {
|
|
196
|
-
file: "
|
|
196
|
+
file: "connection.ts",
|
|
197
197
|
line: 179,
|
|
198
198
|
scope: this,
|
|
199
199
|
callSite: (f, a) => f(...a)
|
|
@@ -247,7 +247,7 @@ var MessageRouter = class {
|
|
|
247
247
|
to: recipient,
|
|
248
248
|
msg: message
|
|
249
249
|
}, {
|
|
250
|
-
file: "
|
|
250
|
+
file: "message-router.ts",
|
|
251
251
|
line: 67,
|
|
252
252
|
scope: this,
|
|
253
253
|
callSite: (f, a) => f(...a)
|
|
@@ -305,7 +305,7 @@ var MessageRouter = class {
|
|
|
305
305
|
to: recipient,
|
|
306
306
|
msg: networkMessage
|
|
307
307
|
}, {
|
|
308
|
-
file: "
|
|
308
|
+
file: "message-router.ts",
|
|
309
309
|
line: 117,
|
|
310
310
|
scope: this,
|
|
311
311
|
callSite: (f, a) => f(...a)
|
|
@@ -336,7 +336,7 @@ var MessageRouter = class {
|
|
|
336
336
|
log2("resolving", {
|
|
337
337
|
answer: message.data.answer
|
|
338
338
|
}, {
|
|
339
|
-
file: "
|
|
339
|
+
file: "message-router.ts",
|
|
340
340
|
line: 146,
|
|
341
341
|
scope: this,
|
|
342
342
|
callSite: (f, a) => f(...a)
|
|
@@ -419,7 +419,7 @@ var Peer = class {
|
|
|
419
419
|
topic: this.topic,
|
|
420
420
|
peerId: this.localPeerId
|
|
421
421
|
}, {
|
|
422
|
-
file: "
|
|
422
|
+
file: "peer.ts",
|
|
423
423
|
line: 83,
|
|
424
424
|
scope: this,
|
|
425
425
|
callSite: (f, a) => f(...a)
|
|
@@ -446,7 +446,7 @@ var Peer = class {
|
|
|
446
446
|
remoteId: this.id,
|
|
447
447
|
err
|
|
448
448
|
}, {
|
|
449
|
-
file: "
|
|
449
|
+
file: "peer.ts",
|
|
450
450
|
line: 107,
|
|
451
451
|
scope: this,
|
|
452
452
|
callSite: (f, a) => f(...a)
|
|
@@ -472,7 +472,7 @@ var Peer = class {
|
|
|
472
472
|
peerId: this.id,
|
|
473
473
|
sessionId
|
|
474
474
|
}, {
|
|
475
|
-
file: "
|
|
475
|
+
file: "peer.ts",
|
|
476
476
|
line: 125,
|
|
477
477
|
scope: this,
|
|
478
478
|
callSite: (f, a) => f(...a)
|
|
@@ -495,14 +495,14 @@ var Peer = class {
|
|
|
495
495
|
ownId: this.localPeerId,
|
|
496
496
|
remoteId: this.id
|
|
497
497
|
}, {
|
|
498
|
-
file: "
|
|
498
|
+
file: "peer.ts",
|
|
499
499
|
line: 137,
|
|
500
500
|
scope: this,
|
|
501
501
|
callSite: (f, a) => f(...a)
|
|
502
502
|
});
|
|
503
503
|
if (connection.state !== ConnectionState.INITIAL) {
|
|
504
504
|
log3("ignoring response", {}, {
|
|
505
|
-
file: "
|
|
505
|
+
file: "peer.ts",
|
|
506
506
|
line: 139,
|
|
507
507
|
scope: this,
|
|
508
508
|
callSite: (f, a) => f(...a)
|
|
@@ -522,7 +522,7 @@ var Peer = class {
|
|
|
522
522
|
remoteId: this.id,
|
|
523
523
|
err
|
|
524
524
|
}, {
|
|
525
|
-
file: "
|
|
525
|
+
file: "peer.ts",
|
|
526
526
|
line: 150,
|
|
527
527
|
scope: this,
|
|
528
528
|
callSite: (f, a) => f(...a)
|
|
@@ -541,7 +541,7 @@ var Peer = class {
|
|
|
541
541
|
initiator,
|
|
542
542
|
sessionId
|
|
543
543
|
}, {
|
|
544
|
-
file: "
|
|
544
|
+
file: "peer.ts",
|
|
545
545
|
line: 164,
|
|
546
546
|
scope: this,
|
|
547
547
|
callSite: (f, a) => f(...a)
|
|
@@ -576,7 +576,7 @@ var Peer = class {
|
|
|
576
576
|
remoteId: this.id,
|
|
577
577
|
initiator
|
|
578
578
|
}, {
|
|
579
|
-
file: "
|
|
579
|
+
file: "peer.ts",
|
|
580
580
|
line: 193,
|
|
581
581
|
scope: this,
|
|
582
582
|
callSite: (f, a) => f(...a)
|
|
@@ -596,7 +596,7 @@ var Peer = class {
|
|
|
596
596
|
initiator,
|
|
597
597
|
err
|
|
598
598
|
}, {
|
|
599
|
-
file: "
|
|
599
|
+
file: "peer.ts",
|
|
600
600
|
line: 203,
|
|
601
601
|
scope: this,
|
|
602
602
|
callSite: (f, a) => f(...a)
|
|
@@ -615,7 +615,7 @@ var Peer = class {
|
|
|
615
615
|
peerId: this.id,
|
|
616
616
|
sessionId: connection.sessionId
|
|
617
617
|
}, {
|
|
618
|
-
file: "
|
|
618
|
+
file: "peer.ts",
|
|
619
619
|
line: 219,
|
|
620
620
|
scope: this,
|
|
621
621
|
callSite: (f, a) => f(...a)
|
|
@@ -625,7 +625,7 @@ var Peer = class {
|
|
|
625
625
|
peerId: this.id,
|
|
626
626
|
sessionId: connection.sessionId
|
|
627
627
|
}, {
|
|
628
|
-
file: "
|
|
628
|
+
file: "peer.ts",
|
|
629
629
|
line: 225,
|
|
630
630
|
scope: this,
|
|
631
631
|
callSite: (f, a) => f(...a)
|
|
@@ -636,7 +636,7 @@ var Peer = class {
|
|
|
636
636
|
log3("dropping signal message for non-existent connection", {
|
|
637
637
|
message
|
|
638
638
|
}, {
|
|
639
|
-
file: "
|
|
639
|
+
file: "peer.ts",
|
|
640
640
|
line: 230,
|
|
641
641
|
scope: this,
|
|
642
642
|
callSite: (f, a) => f(...a)
|
|
@@ -651,7 +651,7 @@ var Peer = class {
|
|
|
651
651
|
peerId: this.id,
|
|
652
652
|
topic: this.topic
|
|
653
653
|
}, {
|
|
654
|
-
file: "
|
|
654
|
+
file: "peer.ts",
|
|
655
655
|
line: 238,
|
|
656
656
|
scope: this,
|
|
657
657
|
callSite: (f, a) => f(...a)
|
|
@@ -695,7 +695,7 @@ var Swarm = class {
|
|
|
695
695
|
log4("creating swarm", {
|
|
696
696
|
peerId: _ownPeerId
|
|
697
697
|
}, {
|
|
698
|
-
file: "
|
|
698
|
+
file: "swarm.ts",
|
|
699
699
|
line: 80,
|
|
700
700
|
scope: this,
|
|
701
701
|
callSite: (f, a) => f(...a)
|
|
@@ -712,7 +712,7 @@ var Swarm = class {
|
|
|
712
712
|
payloadType: "dxos.mesh.swarm.SwarmMessage",
|
|
713
713
|
onMessage: async (message) => await this._swarmMessenger.receiveMessage(message)
|
|
714
714
|
}).catch((error) => log4.catch(error, {}, {
|
|
715
|
-
file: "
|
|
715
|
+
file: "swarm.ts",
|
|
716
716
|
line: 96,
|
|
717
717
|
scope: this,
|
|
718
718
|
callSite: (f, a) => f(...a)
|
|
@@ -732,7 +732,7 @@ var Swarm = class {
|
|
|
732
732
|
}
|
|
733
733
|
async destroy() {
|
|
734
734
|
log4("destroying...", {}, {
|
|
735
|
-
file: "
|
|
735
|
+
file: "swarm.ts",
|
|
736
736
|
line: 124,
|
|
737
737
|
scope: this,
|
|
738
738
|
callSite: (f, a) => f(...a)
|
|
@@ -741,7 +741,7 @@ var Swarm = class {
|
|
|
741
741
|
await this._topology.destroy();
|
|
742
742
|
await Promise.all(Array.from(this._peers.keys()).map((key) => this._destroyPeer(key)));
|
|
743
743
|
log4("destroyed", {}, {
|
|
744
|
-
file: "
|
|
744
|
+
file: "swarm.ts",
|
|
745
745
|
line: 128,
|
|
746
746
|
scope: this,
|
|
747
747
|
callSite: (f, a) => f(...a)
|
|
@@ -755,7 +755,7 @@ var Swarm = class {
|
|
|
755
755
|
previous: getClassName(this._topology),
|
|
756
756
|
topology: getClassName(topology)
|
|
757
757
|
}, {
|
|
758
|
-
file: "
|
|
758
|
+
file: "swarm.ts",
|
|
759
759
|
line: 135,
|
|
760
760
|
scope: this,
|
|
761
761
|
callSite: (f, a) => f(...a)
|
|
@@ -807,14 +807,14 @@ var Swarm = class {
|
|
|
807
807
|
log4("swarm event", {
|
|
808
808
|
swarmEvent
|
|
809
809
|
}, {
|
|
810
|
-
file: "
|
|
810
|
+
file: "swarm.ts",
|
|
811
811
|
line: 199,
|
|
812
812
|
scope: this,
|
|
813
813
|
callSite: (f, a) => f(...a)
|
|
814
814
|
});
|
|
815
815
|
if (this._ctx.disposed) {
|
|
816
816
|
log4.warn("ignored for destroyed swarm", {}, {
|
|
817
|
-
file: "
|
|
817
|
+
file: "swarm.ts",
|
|
818
818
|
line: 201,
|
|
819
819
|
scope: this,
|
|
820
820
|
callSite: (f, a) => f(...a)
|
|
@@ -826,7 +826,7 @@ var Swarm = class {
|
|
|
826
826
|
log4("new peer", {
|
|
827
827
|
peerId
|
|
828
828
|
}, {
|
|
829
|
-
file: "
|
|
829
|
+
file: "swarm.ts",
|
|
830
830
|
line: 207,
|
|
831
831
|
scope: this,
|
|
832
832
|
callSite: (f, a) => f(...a)
|
|
@@ -851,14 +851,14 @@ var Swarm = class {
|
|
|
851
851
|
log4("offer", {
|
|
852
852
|
message
|
|
853
853
|
}, {
|
|
854
|
-
file: "
|
|
854
|
+
file: "swarm.ts",
|
|
855
855
|
line: 226,
|
|
856
856
|
scope: this,
|
|
857
857
|
callSite: (f, a) => f(...a)
|
|
858
858
|
});
|
|
859
859
|
if (this._ctx.disposed) {
|
|
860
860
|
log4.info("ignored for destroyed swarm", {}, {
|
|
861
|
-
file: "
|
|
861
|
+
file: "swarm.ts",
|
|
862
862
|
line: 228,
|
|
863
863
|
scope: this,
|
|
864
864
|
callSite: (f, a) => f(...a)
|
|
@@ -872,7 +872,7 @@ var Swarm = class {
|
|
|
872
872
|
log4("rejecting offer with incorrect peerId", {
|
|
873
873
|
message
|
|
874
874
|
}, {
|
|
875
|
-
file: "
|
|
875
|
+
file: "swarm.ts",
|
|
876
876
|
line: 235,
|
|
877
877
|
scope: this,
|
|
878
878
|
callSite: (f, a) => f(...a)
|
|
@@ -885,7 +885,7 @@ var Swarm = class {
|
|
|
885
885
|
log4("rejecting offer with incorrect topic", {
|
|
886
886
|
message
|
|
887
887
|
}, {
|
|
888
|
-
file: "
|
|
888
|
+
file: "swarm.ts",
|
|
889
889
|
line: 239,
|
|
890
890
|
scope: this,
|
|
891
891
|
callSite: (f, a) => f(...a)
|
|
@@ -904,14 +904,14 @@ var Swarm = class {
|
|
|
904
904
|
log4("signal", {
|
|
905
905
|
message
|
|
906
906
|
}, {
|
|
907
|
-
file: "
|
|
907
|
+
file: "swarm.ts",
|
|
908
908
|
line: 250,
|
|
909
909
|
scope: this,
|
|
910
910
|
callSite: (f, a) => f(...a)
|
|
911
911
|
});
|
|
912
912
|
if (this._ctx.disposed) {
|
|
913
913
|
log4.info("ignored for destroyed swarm", {}, {
|
|
914
|
-
file: "
|
|
914
|
+
file: "swarm.ts",
|
|
915
915
|
line: 252,
|
|
916
916
|
scope: this,
|
|
917
917
|
callSite: (f, a) => f(...a)
|
|
@@ -940,7 +940,7 @@ var Swarm = class {
|
|
|
940
940
|
await this._initiateConnection(peer);
|
|
941
941
|
} catch (err) {
|
|
942
942
|
log4.warn("initiation error", err, {
|
|
943
|
-
file: "
|
|
943
|
+
file: "swarm.ts",
|
|
944
944
|
line: 287,
|
|
945
945
|
scope: this,
|
|
946
946
|
callSite: (f, a) => f(...a)
|
|
@@ -964,7 +964,7 @@ var Swarm = class {
|
|
|
964
964
|
log4("initiation delay", {
|
|
965
965
|
remoteId
|
|
966
966
|
}, {
|
|
967
|
-
file: "
|
|
967
|
+
file: "swarm.ts",
|
|
968
968
|
line: 312,
|
|
969
969
|
scope: this,
|
|
970
970
|
callSite: (f, a) => f(...a)
|
|
@@ -981,7 +981,7 @@ var Swarm = class {
|
|
|
981
981
|
log4("initiating connection...", {
|
|
982
982
|
remoteId
|
|
983
983
|
}, {
|
|
984
|
-
file: "
|
|
984
|
+
file: "swarm.ts",
|
|
985
985
|
line: 326,
|
|
986
986
|
scope: this,
|
|
987
987
|
callSite: (f, a) => f(...a)
|
|
@@ -991,7 +991,7 @@ var Swarm = class {
|
|
|
991
991
|
log4("initiated", {
|
|
992
992
|
remoteId
|
|
993
993
|
}, {
|
|
994
|
-
file: "
|
|
994
|
+
file: "swarm.ts",
|
|
995
995
|
line: 329,
|
|
996
996
|
scope: this,
|
|
997
997
|
callSite: (f, a) => f(...a)
|
|
@@ -1046,7 +1046,7 @@ var SwarmMapper = class {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
_update() {
|
|
1048
1048
|
log5("updating swarm", {}, {
|
|
1049
|
-
file: "
|
|
1049
|
+
file: "swarm-mapper.ts",
|
|
1050
1050
|
line: 75,
|
|
1051
1051
|
scope: this,
|
|
1052
1052
|
callSite: (f, a) => f(...a)
|
|
@@ -1070,7 +1070,7 @@ var SwarmMapper = class {
|
|
|
1070
1070
|
directConnections: this._swarm.connections.length,
|
|
1071
1071
|
totalPeersInSwarm: this._peers.size
|
|
1072
1072
|
}, {
|
|
1073
|
-
file: "
|
|
1073
|
+
file: "swarm-mapper.ts",
|
|
1074
1074
|
line: 116,
|
|
1075
1075
|
scope: this,
|
|
1076
1076
|
callSite: (f, a) => f(...a)
|
|
@@ -1183,7 +1183,7 @@ var NetworkManager = class {
|
|
|
1183
1183
|
for (const topic of this._swarms.keys()) {
|
|
1184
1184
|
await this.leaveSwarm(topic).catch((err) => {
|
|
1185
1185
|
log6(err, {}, {
|
|
1186
|
-
file: "
|
|
1186
|
+
file: "network-manager.ts",
|
|
1187
1187
|
line: 122,
|
|
1188
1188
|
scope: this,
|
|
1189
1189
|
callSite: (f, a) => f(...a)
|
|
@@ -1206,7 +1206,7 @@ var NetworkManager = class {
|
|
|
1206
1206
|
peerId,
|
|
1207
1207
|
topology: topology.toString()
|
|
1208
1208
|
}, {
|
|
1209
|
-
file: "
|
|
1209
|
+
file: "network-manager.ts",
|
|
1210
1210
|
line: 148,
|
|
1211
1211
|
scope: this,
|
|
1212
1212
|
callSite: (f, a) => f(...a)
|
|
@@ -1216,7 +1216,7 @@ var NetworkManager = class {
|
|
|
1216
1216
|
log6("swarm error", {
|
|
1217
1217
|
error
|
|
1218
1218
|
}, {
|
|
1219
|
-
file: "
|
|
1219
|
+
file: "network-manager.ts",
|
|
1220
1220
|
line: 151,
|
|
1221
1221
|
scope: this,
|
|
1222
1222
|
callSite: (f, a) => f(...a)
|
|
@@ -1227,7 +1227,7 @@ var NetworkManager = class {
|
|
|
1227
1227
|
topic,
|
|
1228
1228
|
peerId
|
|
1229
1229
|
}).catch((error) => log6.catch(error, {}, {
|
|
1230
|
-
file: "
|
|
1230
|
+
file: "network-manager.ts",
|
|
1231
1231
|
line: 155,
|
|
1232
1232
|
scope: this,
|
|
1233
1233
|
callSite: (f, a) => f(...a)
|
|
@@ -1239,7 +1239,7 @@ var NetworkManager = class {
|
|
|
1239
1239
|
topic: PublicKey6.from(topic),
|
|
1240
1240
|
count: this._swarms.size
|
|
1241
1241
|
}, {
|
|
1242
|
-
file: "
|
|
1242
|
+
file: "network-manager.ts",
|
|
1243
1243
|
line: 160,
|
|
1244
1244
|
scope: this,
|
|
1245
1245
|
callSite: (f, a) => f(...a)
|
|
@@ -1254,7 +1254,7 @@ var NetworkManager = class {
|
|
|
1254
1254
|
log6.warn("swarm not open", {
|
|
1255
1255
|
topic: PublicKey6.from(topic)
|
|
1256
1256
|
}, {
|
|
1257
|
-
file: "
|
|
1257
|
+
file: "network-manager.ts",
|
|
1258
1258
|
line: 172,
|
|
1259
1259
|
scope: this,
|
|
1260
1260
|
callSite: (f, a) => f(...a)
|
|
@@ -1264,7 +1264,7 @@ var NetworkManager = class {
|
|
|
1264
1264
|
log6("leaving", {
|
|
1265
1265
|
topic: PublicKey6.from(topic)
|
|
1266
1266
|
}, {
|
|
1267
|
-
file: "
|
|
1267
|
+
file: "network-manager.ts",
|
|
1268
1268
|
line: 176,
|
|
1269
1269
|
scope: this,
|
|
1270
1270
|
callSite: (f, a) => f(...a)
|
|
@@ -1285,7 +1285,7 @@ var NetworkManager = class {
|
|
|
1285
1285
|
topic: PublicKey6.from(topic),
|
|
1286
1286
|
count: this._swarms.size
|
|
1287
1287
|
}, {
|
|
1288
|
-
file: "
|
|
1288
|
+
file: "network-manager.ts",
|
|
1289
1289
|
line: 190,
|
|
1290
1290
|
scope: this,
|
|
1291
1291
|
callSite: (f, a) => f(...a)
|
|
@@ -1369,7 +1369,7 @@ var _MemoryTransport = class {
|
|
|
1369
1369
|
this._destroyed = false;
|
|
1370
1370
|
this._instanceId = PublicKey7.random();
|
|
1371
1371
|
log9("creating", {}, {
|
|
1372
|
-
file: "
|
|
1372
|
+
file: "memory-transport.ts",
|
|
1373
1373
|
line: 64,
|
|
1374
1374
|
scope: this,
|
|
1375
1375
|
callSite: (f, a) => f(...a)
|
|
@@ -1379,7 +1379,7 @@ var _MemoryTransport = class {
|
|
|
1379
1379
|
if (this.options.initiator) {
|
|
1380
1380
|
setTimeout(async () => {
|
|
1381
1381
|
log9("sending signal", {}, {
|
|
1382
|
-
file: "
|
|
1382
|
+
file: "memory-transport.ts",
|
|
1383
1383
|
line: 73,
|
|
1384
1384
|
scope: this,
|
|
1385
1385
|
callSite: (f, a) => f(...a)
|
|
@@ -1408,7 +1408,7 @@ var _MemoryTransport = class {
|
|
|
1408
1408
|
this._remoteConnection._remoteConnection = this;
|
|
1409
1409
|
this._remoteConnection._remoteInstanceId = this._instanceId;
|
|
1410
1410
|
log9("connected", {}, {
|
|
1411
|
-
file: "
|
|
1411
|
+
file: "memory-transport.ts",
|
|
1412
1412
|
line: 102,
|
|
1413
1413
|
scope: this,
|
|
1414
1414
|
callSite: (f, a) => f(...a)
|
|
@@ -1426,7 +1426,7 @@ var _MemoryTransport = class {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
async destroy() {
|
|
1428
1428
|
log9("closing", {}, {
|
|
1429
|
-
file: "
|
|
1429
|
+
file: "memory-transport.ts",
|
|
1430
1430
|
line: 123,
|
|
1431
1431
|
scope: this,
|
|
1432
1432
|
callSite: (f, a) => f(...a)
|
|
@@ -1435,7 +1435,7 @@ var _MemoryTransport = class {
|
|
|
1435
1435
|
_MemoryTransport._connections.delete(this._instanceId);
|
|
1436
1436
|
if (this._remoteConnection) {
|
|
1437
1437
|
log9("closing", {}, {
|
|
1438
|
-
file: "
|
|
1438
|
+
file: "memory-transport.ts",
|
|
1439
1439
|
line: 128,
|
|
1440
1440
|
scope: this,
|
|
1441
1441
|
callSite: (f, a) => f(...a)
|
|
@@ -1448,7 +1448,7 @@ var _MemoryTransport = class {
|
|
|
1448
1448
|
this._remoteConnection._remoteConnection = void 0;
|
|
1449
1449
|
this._remoteConnection = void 0;
|
|
1450
1450
|
log9("closed", {}, {
|
|
1451
|
-
file: "
|
|
1451
|
+
file: "memory-transport.ts",
|
|
1452
1452
|
line: 146,
|
|
1453
1453
|
scope: this,
|
|
1454
1454
|
callSite: (f, a) => f(...a)
|
|
@@ -1456,7 +1456,7 @@ var _MemoryTransport = class {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
this.closed.emit();
|
|
1458
1458
|
log9("closed", {}, {
|
|
1459
|
-
file: "
|
|
1459
|
+
file: "memory-transport.ts",
|
|
1460
1460
|
line: 150,
|
|
1461
1461
|
scope: this,
|
|
1462
1462
|
callSite: (f, a) => f(...a)
|
|
@@ -1466,7 +1466,7 @@ var _MemoryTransport = class {
|
|
|
1466
1466
|
log9("received signal", {
|
|
1467
1467
|
payload
|
|
1468
1468
|
}, {
|
|
1469
|
-
file: "
|
|
1469
|
+
file: "memory-transport.ts",
|
|
1470
1470
|
line: 154,
|
|
1471
1471
|
scope: this,
|
|
1472
1472
|
callSite: (f, a) => f(...a)
|
|
@@ -1513,7 +1513,7 @@ var WebRTCTransport = class {
|
|
|
1513
1513
|
this.connected = new Event7();
|
|
1514
1514
|
this.errors = new ErrorStream4();
|
|
1515
1515
|
log10("created connection", params, {
|
|
1516
|
-
file: "
|
|
1516
|
+
file: "webrtc-transport.ts",
|
|
1517
1517
|
line: 34,
|
|
1518
1518
|
scope: this,
|
|
1519
1519
|
callSite: (f, a) => f(...a)
|
|
@@ -1525,7 +1525,7 @@ var WebRTCTransport = class {
|
|
|
1525
1525
|
});
|
|
1526
1526
|
this._peer.on("signal", async (data) => {
|
|
1527
1527
|
log10("signal", data, {
|
|
1528
|
-
file: "
|
|
1528
|
+
file: "webrtc-transport.ts",
|
|
1529
1529
|
line: 42,
|
|
1530
1530
|
scope: this,
|
|
1531
1531
|
callSite: (f, a) => f(...a)
|
|
@@ -1538,7 +1538,7 @@ var WebRTCTransport = class {
|
|
|
1538
1538
|
});
|
|
1539
1539
|
this._peer.on("connect", () => {
|
|
1540
1540
|
log10("connected", {}, {
|
|
1541
|
-
file: "
|
|
1541
|
+
file: "webrtc-transport.ts",
|
|
1542
1542
|
line: 47,
|
|
1543
1543
|
scope: this,
|
|
1544
1544
|
callSite: (f, a) => f(...a)
|
|
@@ -1548,7 +1548,7 @@ var WebRTCTransport = class {
|
|
|
1548
1548
|
});
|
|
1549
1549
|
this._peer.on("close", async () => {
|
|
1550
1550
|
log10("closed", {}, {
|
|
1551
|
-
file: "
|
|
1551
|
+
file: "webrtc-transport.ts",
|
|
1552
1552
|
line: 53,
|
|
1553
1553
|
scope: this,
|
|
1554
1554
|
callSite: (f, a) => f(...a)
|
|
@@ -1563,7 +1563,7 @@ var WebRTCTransport = class {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
async destroy() {
|
|
1565
1565
|
log10("closing...", {}, {
|
|
1566
|
-
file: "
|
|
1566
|
+
file: "webrtc-transport.ts",
|
|
1567
1567
|
line: 65,
|
|
1568
1568
|
scope: this,
|
|
1569
1569
|
callSite: (f, a) => f(...a)
|
|
@@ -1572,7 +1572,7 @@ var WebRTCTransport = class {
|
|
|
1572
1572
|
this._peer.destroy();
|
|
1573
1573
|
this.closed.emit();
|
|
1574
1574
|
log10("closed", {}, {
|
|
1575
|
-
file: "
|
|
1575
|
+
file: "webrtc-transport.ts",
|
|
1576
1576
|
line: 69,
|
|
1577
1577
|
scope: this,
|
|
1578
1578
|
callSite: (f, a) => f(...a)
|
|
@@ -1678,7 +1678,7 @@ var WebRTCTransportService = class {
|
|
|
1678
1678
|
await ((_b = this.transports.get(proxyId)) == null ? void 0 : _b.stream.end());
|
|
1679
1679
|
this.transports.delete(proxyId);
|
|
1680
1680
|
log11("Closed.", {}, {
|
|
1681
|
-
file: "
|
|
1681
|
+
file: "webrtc-transport-service.ts",
|
|
1682
1682
|
line: 108,
|
|
1683
1683
|
scope: this,
|
|
1684
1684
|
callSite: (f, a) => f(...a)
|
|
@@ -1708,7 +1708,7 @@ var WebRTCTransportProxy = class {
|
|
|
1708
1708
|
this._serviceStream.waitUntilReady().then(() => {
|
|
1709
1709
|
this._serviceStream.subscribe(async (event) => {
|
|
1710
1710
|
log12("WebRTCTransportProxy: event", event, {
|
|
1711
|
-
file: "
|
|
1711
|
+
file: "webrtc-transport-proxy.ts",
|
|
1712
1712
|
line: 46,
|
|
1713
1713
|
scope: this,
|
|
1714
1714
|
callSite: (f, a) => f(...a)
|
|
@@ -1729,7 +1729,7 @@ var WebRTCTransportProxy = class {
|
|
|
1729
1729
|
});
|
|
1730
1730
|
} catch (err) {
|
|
1731
1731
|
log12.catch(err, {}, {
|
|
1732
|
-
file: "
|
|
1732
|
+
file: "webrtc-transport-proxy.ts",
|
|
1733
1733
|
line: 63,
|
|
1734
1734
|
scope: this,
|
|
1735
1735
|
callSite: (f, a) => f(...a)
|
|
@@ -1737,7 +1737,7 @@ var WebRTCTransportProxy = class {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
});
|
|
1739
1739
|
}, (error) => log12.catch(error, {}, {
|
|
1740
|
-
file: "
|
|
1740
|
+
file: "webrtc-transport-proxy.ts",
|
|
1741
1741
|
line: 67,
|
|
1742
1742
|
scope: this,
|
|
1743
1743
|
callSite: (f, a) => f(...a)
|
|
@@ -1781,7 +1781,7 @@ var WebRTCTransportProxy = class {
|
|
|
1781
1781
|
});
|
|
1782
1782
|
} catch (err) {
|
|
1783
1783
|
log12.catch(err, {}, {
|
|
1784
|
-
file: "
|
|
1784
|
+
file: "webrtc-transport-proxy.ts",
|
|
1785
1785
|
line: 117,
|
|
1786
1786
|
scope: this,
|
|
1787
1787
|
callSite: (f, a) => f(...a)
|
|
@@ -1854,7 +1854,7 @@ var TestWireProtocol = class {
|
|
|
1854
1854
|
log13("create", {
|
|
1855
1855
|
remotePeerId: teleport.remotePeerId
|
|
1856
1856
|
}, {
|
|
1857
|
-
file: "
|
|
1857
|
+
file: "test-wire-protocol.ts",
|
|
1858
1858
|
line: 20,
|
|
1859
1859
|
scope: this,
|
|
1860
1860
|
callSite: (f, a) => f(...a)
|
|
@@ -1876,7 +1876,7 @@ var TestWireProtocol = class {
|
|
|
1876
1876
|
log13("waitForConnection", {
|
|
1877
1877
|
peerId
|
|
1878
1878
|
}, {
|
|
1879
|
-
file: "
|
|
1879
|
+
file: "test-wire-protocol.ts",
|
|
1880
1880
|
line: 35,
|
|
1881
1881
|
scope: this,
|
|
1882
1882
|
callSite: (f, a) => f(...a)
|
|
@@ -2006,3 +2006,4 @@ export {
|
|
|
2006
2006
|
TestPeer,
|
|
2007
2007
|
TestSwarmConnection
|
|
2008
2008
|
};
|
|
2009
|
+
//# sourceMappingURL=index.mjs.map
|