*Add getter for activeRelay

This commit is contained in:
Derrick Hammer 2023-02-01 08:36:43 -05:00
parent 400d768fe8
commit fb13e6e323
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ export default class HyperswarmWeb extends EventEmitter {
this._discovery = createClient();
}
get activeRelay(): Hyperswarm {
return this._activeRelay;
}
init(): Promise<void> {
return this.ensureConnection();
}