*Add method to clear registered sources
This commit is contained in:
parent
e2ed9ed184
commit
0a9197315c
|
@ -32,6 +32,10 @@ export class PeerDiscovery {
|
|||
return true;
|
||||
}
|
||||
|
||||
public removeAllSources(): void {
|
||||
this._sources.clear();
|
||||
}
|
||||
|
||||
public async discover(
|
||||
pubkey: string | Buffer,
|
||||
options = {}
|
||||
|
|
Loading…
Reference in New Issue