*add getter to return relay servers
This commit is contained in:
parent
8c30190a78
commit
5276de4363
|
@ -41,6 +41,10 @@ export default class DHT {
|
|||
return [...this._relays.keys()];
|
||||
}
|
||||
|
||||
get relayServers(): string[] {
|
||||
return [...this._relays.values()];
|
||||
}
|
||||
|
||||
public async addRelay(pubkey: string): Promise<boolean> {
|
||||
let entry: errTuple = await registryRead(
|
||||
hexToBuf(pubkey).shift() as Uint8Array,
|
||||
|
|
Loading…
Reference in New Issue