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.

emit event once initialised #1058

Closed
Closed
@pgte

Description

@pgte
  • Version: 0.26.0
  • Platform: All
  • Subsystem:

Type:

Enhancement

Severity:

Very Low

Description:

I want to support better offline use cases. I need the peerId to be able to start working locally, without needing for Swarm, Bitswap or Pubsub to consider themselves ready.

AFAIK, right now there is no event that tells me this. init is only emitted if the repo needs initialising.
start and ready are only emitted once the network layer is ready, which may not happen in my case.

Right now I'm polling the IPFS node for the _peerInfo property, but I would like to have a better alternative.

I would like to have an event that tells me once the peerId is known.

Steps to reproduce the error:

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upexp/wizardExtensive knowledge (implications, ramifications) requiredhelp wantedSeeking public contribution on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions