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