Private
#privateFind a peer on the DHT
Optional
options: QueryOptionsFind providers of a given CID
Optional
options: QueryOptionsGet a value from the DHT, the final ValueEvent will be the best value
Optional
options: QueryOptionsFind the closest peers to the passed key
Optional
options: QueryOptionsStore provider records for the passed CID on the DHT pointing to us
Optional
options: QueryOptionsStore the passed value under the passed key on the DHT
Optional
options: QueryOptionsOptional
options: boolean | AddEventListenerOptionsOptional
listener: null | EventHandler<PeerDiscoveryEvents[K]>Optional
options: boolean | EventListenerOptions
Adds types to the EventTarget class. Hopefully this won't be necessary forever.
https://github.com/microsoft/TypeScript/issues/28357 https://github.com/microsoft/TypeScript/issues/43477 https://github.com/microsoft/TypeScript/issues/299 etc