@dxos/echo-pipeline 0.3.9-main.93b9a50 → 0.3.9-main.ae1b47e
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-MPEQ7BV3.mjs → chunk-HSZ2EJ74.mjs} +12 -11
- package/dist/lib/browser/{chunk-MPEQ7BV3.mjs.map → chunk-HSZ2EJ74.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/{chunk-YJAADRTG.cjs → chunk-RMIDX4JE.cjs} +15 -14
- package/dist/lib/node/{chunk-YJAADRTG.cjs.map → chunk-RMIDX4JE.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +25 -25
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +14 -14
- package/dist/types/src/space/space-protocol.d.ts +2 -1
- package/dist/types/src/space/space-protocol.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/space/space-protocol.ts +6 -3
|
@@ -2443,6 +2443,7 @@ var SpaceProtocol = class {
|
|
|
2443
2443
|
constructor({ topic, swarmIdentity, networkManager, onSessionAuth, onAuthFailure, blobStore }) {
|
|
2444
2444
|
this._feeds = /* @__PURE__ */ new Set();
|
|
2445
2445
|
this._sessions = new ComplexMap5(PublicKey6.hash);
|
|
2446
|
+
this._spaceKey = topic;
|
|
2446
2447
|
this._networkManager = networkManager;
|
|
2447
2448
|
this._swarmIdentity = swarmIdentity;
|
|
2448
2449
|
this._onSessionAuth = onSessionAuth;
|
|
@@ -2467,7 +2468,7 @@ var SpaceProtocol = class {
|
|
|
2467
2468
|
key: feed.key
|
|
2468
2469
|
}, {
|
|
2469
2470
|
F: __dxlog_file12,
|
|
2470
|
-
L:
|
|
2471
|
+
L: 99,
|
|
2471
2472
|
S: this,
|
|
2472
2473
|
C: (f, a) => f(...a)
|
|
2473
2474
|
});
|
|
@@ -2490,7 +2491,7 @@ var SpaceProtocol = class {
|
|
|
2490
2491
|
await this.blobSync.open();
|
|
2491
2492
|
log11("starting...", void 0, {
|
|
2492
2493
|
F: __dxlog_file12,
|
|
2493
|
-
L:
|
|
2494
|
+
L: 125,
|
|
2494
2495
|
S: this,
|
|
2495
2496
|
C: (f, a) => f(...a)
|
|
2496
2497
|
});
|
|
@@ -2500,11 +2501,11 @@ var SpaceProtocol = class {
|
|
|
2500
2501
|
peerId: this._swarmIdentity.peerKey,
|
|
2501
2502
|
topic,
|
|
2502
2503
|
topology: new MMSTTopology(topologyConfig),
|
|
2503
|
-
label: `
|
|
2504
|
+
label: `swarm ${topic.truncate()} for space ${this._spaceKey.truncate()}`
|
|
2504
2505
|
});
|
|
2505
2506
|
log11("started", void 0, {
|
|
2506
2507
|
F: __dxlog_file12,
|
|
2507
|
-
L:
|
|
2508
|
+
L: 135,
|
|
2508
2509
|
S: this,
|
|
2509
2510
|
C: (f, a) => f(...a)
|
|
2510
2511
|
});
|
|
@@ -2514,14 +2515,14 @@ var SpaceProtocol = class {
|
|
|
2514
2515
|
if (this._connection) {
|
|
2515
2516
|
log11("stopping...", void 0, {
|
|
2516
2517
|
F: __dxlog_file12,
|
|
2517
|
-
L:
|
|
2518
|
+
L: 142,
|
|
2518
2519
|
S: this,
|
|
2519
2520
|
C: (f, a) => f(...a)
|
|
2520
2521
|
});
|
|
2521
2522
|
await this._connection.close();
|
|
2522
2523
|
log11("stopped", void 0, {
|
|
2523
2524
|
F: __dxlog_file12,
|
|
2524
|
-
L:
|
|
2525
|
+
L: 144,
|
|
2525
2526
|
S: this,
|
|
2526
2527
|
C: (f, a) => f(...a)
|
|
2527
2528
|
});
|
|
@@ -2580,15 +2581,15 @@ var SpaceProtocolSession = class {
|
|
|
2580
2581
|
get stream() {
|
|
2581
2582
|
return this._teleport.stream;
|
|
2582
2583
|
}
|
|
2583
|
-
async open() {
|
|
2584
|
-
await this._teleport.open();
|
|
2584
|
+
async open(sessionId) {
|
|
2585
|
+
await this._teleport.open(sessionId);
|
|
2585
2586
|
this._teleport.addExtension("dxos.mesh.teleport.auth", new AuthExtension({
|
|
2586
2587
|
provider: this._swarmIdentity.credentialProvider,
|
|
2587
2588
|
verifier: this._swarmIdentity.credentialAuthenticator,
|
|
2588
2589
|
onAuthSuccess: () => {
|
|
2589
2590
|
log11("Peer authenticated", void 0, {
|
|
2590
2591
|
F: __dxlog_file12,
|
|
2591
|
-
L:
|
|
2592
|
+
L: 241,
|
|
2592
2593
|
S: this,
|
|
2593
2594
|
C: (f, a) => f(...a)
|
|
2594
2595
|
});
|
|
@@ -2606,7 +2607,7 @@ var SpaceProtocolSession = class {
|
|
|
2606
2607
|
async close() {
|
|
2607
2608
|
log11("close", void 0, {
|
|
2608
2609
|
F: __dxlog_file12,
|
|
2609
|
-
L:
|
|
2610
|
+
L: 257,
|
|
2610
2611
|
S: this,
|
|
2611
2612
|
C: (f, a) => f(...a)
|
|
2612
2613
|
});
|
|
@@ -2749,4 +2750,4 @@ export {
|
|
|
2749
2750
|
SpaceProtocolSession,
|
|
2750
2751
|
SpaceManager
|
|
2751
2752
|
};
|
|
2752
|
-
//# sourceMappingURL=chunk-
|
|
2753
|
+
//# sourceMappingURL=chunk-HSZ2EJ74.mjs.map
|