Initiates a random walk for peer discovery.
This method either begins a new random walk or joins an existing one. The process continues to find and return random peers until it is aborted.
Optionaloptions: AbortOptionsOptional AbortOptions to allow early termination of the walk.
An AsyncGenerator that yields discovered PeerInfo objects.
The
RandomWalkcomponent uses the libp2p peer routing to find arbitrary network peers. Consumers may then dial these peers, causing the Identify protocol to run and any registered topologies to be notified of their supported protocols.