peers

suspend fun peers(): List<PeerInfo>

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

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

See also