Skip to content

Commit

Permalink
docs: added identify service info to pubsub docs (libp2p#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed May 25, 2023
1 parent d794df5 commit 07b6d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const node = await createLibp2p({

#### Customizing Pubsub

Before a peer can subscribe to a topic it must find other peers and establish network connections with them. The pub/sub system doesn’t have any way to discover peers by itself. Instead, it relies upon the application to find new peers on its behalf, a process called ambient peer discovery.
Before a peer can subscribe to a topic it must find other peers and establish network connections with them. The pub/sub system doesn’t have any way to discover peers by itself. Instead, it relies upon the application to find new peers on its behalf, a process called ambient peer discovery. This means that pubsub relies on the identify service to exchange peer information with other peers.

Potential methods for discovering peers include:

Expand All @@ -335,6 +335,7 @@ Potential methods for discovering peers include:
- [Centralized trackers or rendezvous points](https://docs.libp2p.io/concepts/discovery-routing/rendezvous/)
- [Lists of bootstrap peers](https://github.com/libp2p/js-libp2p-bootstrap)


```js
import { createLibp2p } from 'libp2p'
import { tcp } from '@libp2p/tcp'
Expand Down

0 comments on commit 07b6d01

Please sign in to comment.