*Add getter for activeRelay
This commit is contained in:
parent
400d768fe8
commit
fb13e6e323
|
@ -30,6 +30,10 @@ export default class HyperswarmWeb extends EventEmitter {
|
||||||
this._discovery = createClient();
|
this._discovery = createClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get activeRelay(): Hyperswarm {
|
||||||
|
return this._activeRelay;
|
||||||
|
}
|
||||||
|
|
||||||
init(): Promise<void> {
|
init(): Promise<void> {
|
||||||
return this.ensureConnection();
|
return this.ensureConnection();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue