diff --git a/src/index.ts b/src/index.ts index 2d603df..46e3b6b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,10 @@ export default class HyperswarmWeb extends EventEmitter { this._discovery = createClient(); } + get activeRelay(): Hyperswarm { + return this._activeRelay; + } + init(): Promise { return this.ensureConnection(); }