diff --git a/src/index.ts b/src/index.ts index 040af7b..857b1d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 { let entry: errTuple = await registryRead( hexToBuf(pubkey).shift() as Uint8Array,