Skip to content

feat: Add example demonstrating the Identify protocol usage in js-libp2p #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
acul71 opened this issue May 16, 2025 · 0 comments
Open

Comments

@acul71
Copy link

acul71 commented May 16, 2025

Request: Add Identify Protocol Example

It would be great to add an example showcasing how to use the Identify protocol in js-libp2p. This protocol is essential for peers to exchange basic information such as:

  • Peer ID
  • Supported protocols
  • Observed addresses

Suggested contents for the example

The example could demonstrate:

  • How Identify works out-of-the-box with the js-libp2p configuration
  • How to access Identify information from peers
  • How to respond to events or log peer info after a connection is established

This would help users understand peer discovery and metadata exchange more clearly, especially when debugging or building custom tools on top of libp2p.

Thanks for all the great work on this repo!

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

No branches or pull requests

1 participant