getPeers

suspend fun getPeers(): List<PeerInfo>

Returns info about all known peers (both discovered and explicitly added).

When the set of known peers changes, a NetworkEvent::PeerSetChange is emitted. Calling this function afterwards returns the new peer info.