@dxos/echo-pipeline 0.3.11-main.00a28cb → 0.3.11-main.0999ea0

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.
@@ -42,7 +42,7 @@ export type ConstructSpaceParams = {
42
42
  /**
43
43
  * Called when connection auth passed successful.
44
44
  */
45
- onNetworkConnection: (session: Teleport) => void;
45
+ onAuthorizedConnection: (session: Teleport) => void;
46
46
  onAuthFailure?: (session: Teleport) => void;
47
47
  };
48
48
 
@@ -93,7 +93,7 @@ export class SpaceManager {
93
93
  async constructSpace({
94
94
  metadata,
95
95
  swarmIdentity,
96
- onNetworkConnection,
96
+ onAuthorizedConnection,
97
97
  onAuthFailure,
98
98
  memberKey,
99
99
  }: ConstructSpaceParams) {
@@ -108,7 +108,7 @@ export class SpaceManager {
108
108
  topic: spaceKey,
109
109
  swarmIdentity,
110
110
  networkManager: this._networkManager,
111
- onSessionAuth: onNetworkConnection,
111
+ onSessionAuth: onAuthorizedConnection,
112
112
  onAuthFailure,
113
113
  blobStore: this._blobStore,
114
114
  });
@@ -189,7 +189,7 @@ export class TestAgent {
189
189
  credentialAuthenticator: MOCK_AUTH_VERIFIER,
190
190
  },
191
191
  memberKey: identityKey,
192
- onNetworkConnection: (session) => {
192
+ onAuthorizedConnection: (session) => {
193
193
  session.addExtension(
194
194
  'dxos.mesh.teleport.gossip',
195
195
  this.createGossip().createExtension({ remotePeerId: session.remotePeerId }),