Skip to content

Commit 0dd0048

Browse files
author
Mauve Signweaver
committed
feat: Expose active drives and hyperbees along the cores
1 parent f0f54c7 commit 0dd0048

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ export class SDK extends EventEmitter {
117117
return [...this.#coreCache.values()]
118118
}
119119

120+
get drives () {
121+
return [...this.#driveCache.values()]
122+
}
123+
124+
get bees () {
125+
return [...this.#beeCache.values()]
126+
}
127+
120128
async resolveDNSToKey (hostname) {
121129
// TODO: Check for TTL?
122130
if (this.#dnsMemoryCache.has(hostname)) {
@@ -368,7 +376,7 @@ export class SDK extends EventEmitter {
368376
if (typeof topic === 'string') {
369377
return this.join(this.makeTopicKey(topic), opts)
370378
}
371-
const joinOpts = { ...this.defaultJoinOpts, ...opts }
379+
const joinOpts = { ...this.#defaultJoinOpts, ...opts }
372380
return this.swarm.join(topic, joinOpts)
373381
}
374382

0 commit comments

Comments
 (0)