diff --git a/js/nostr/client.js b/js/nostr/client.js index 1084c6ac..b076fc92 100644 --- a/js/nostr/client.js +++ b/js/nostr/client.js @@ -215,6 +215,7 @@ import { EventsMap } from "./eventsMap.js"; import { PersistenceManager } from "./managers/PersistenceManager.js"; import { ConnectionManager } from "./managers/ConnectionManager.js"; import { SignerManager } from "./managers/SignerManager.js"; +import { RelayBatchFetcher } from "./relayBatchFetcher.js"; function normalizeProfileFromEvent(event) { if (!event || !event.content) return null; @@ -580,6 +581,7 @@ export class NostrClient { constructor() { this.connectionManager = new ConnectionManager(this); this.signerManager = new SignerManager(this); + this.relayBatchFetcher = new RelayBatchFetcher(this); /** * @type {Map} diff --git a/js/nostr/relayBatchFetcher.js b/js/nostr/relayBatchFetcher.js index 7afe346e..5fdf0910 100644 --- a/js/nostr/relayBatchFetcher.js +++ b/js/nostr/relayBatchFetcher.js @@ -5,6 +5,9 @@ import { normalizeNostrPubkey, sanitizeRelayList } from "./nip46Client.js"; import { DEFAULT_RELAY_URLS, RELAY_URLS } from "./toolkit.js"; export class RelayBatchFetcher { + /** + * @param {import("./client.js").NostrClient} client + */ constructor(client) { this.client = client; }