This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Question about running swarm.peers()
in setInterval
#970
Labels
kind/support
A question or request for support
Question
Low
Description:
@diasdavid: in this comment you said:
Let's try one more thing, spawn several browser tabs with your code and instead of doing just once node.swarm.peers do it in a setInterval.
. How does this work? Is it simply: running this function more than once tells the network to connect to more peers?`. This seems to be the case because the more times it is run the more peers I have. Wondering if there is more to it than that.The text was updated successfully, but these errors were encountered: