Skip to content

Conversation

@vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Feb 16, 2021

This PR adds the introspection protocol for libp2p. This was done as a hack for a demo and this should be revisited. This draft PR is mostly for visibility.

The daemon is not the best place to have the introspection, specially if we want to enable libp2p users to use it when running using libp2p as a lib, such as IPFS. Libp2p should be able to have the introspection module plugged in.

Note: The @libp2p/observer-data and @libp2p/observer-proto need a .npmrc file to be installed.

The @libp2p/observer-proto was updated in libp2p/observer-toolkit#89 and that version should be used. Unfortunately, lerna repos do not allow to install a dependency as a git branch and I cannot add it here but it is important for testing purposes.

A good example for testing the DHT widget is running:

node src/cli/bin.js --hostAddrs /ip4/0.0.0.0/tcp/55555/ws --bootstrapPeers /dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN,/dnsaddr/bootstrap.libp2p.io/ipfs/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa --bootstrap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants