diff --git a/src/index.ts b/src/index.ts index 3331ddc..adadf77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,6 +32,10 @@ export class PeerDiscovery { return true; } + public removeAllSources(): void { + this._sources.clear(); + } + public async discover( pubkey: string | Buffer, options = {}