diff --git a/src/index.ts b/src/index.ts index 6707a27..8300e60 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,6 +18,15 @@ export class SwarmClient extends Client { private _topics: Set = new Set(); + get dht() { + const self = this; + return { + async ready() { + return self.ready(); + }, + }; + } + constructor(useDefaultDht = true, autoReconnect = false) { super(); this.useDefaultSwarm = useDefaultDht;