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
Description
- 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