*Add method to clear registered sources

This commit is contained in:
Derrick Hammer 2023-01-15 03:35:40 -05:00
parent e2ed9ed184
commit 0a9197315c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ export class PeerDiscovery {
return true;
}
public removeAllSources(): void {
this._sources.clear();
}
public async discover(
pubkey: string | Buffer,
options = {}