Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Question about running swarm.peers() in setInterval  #970

Closed
@JohnAllen

Description

@JohnAllen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions