Skip to content

Commit 07b6d01

Browse files
committed
docs: added identify service info to pubsub docs (libp2p#1763)
1 parent d794df5 commit 07b6d01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/CONFIGURATION.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ const node = await createLibp2p({
326326

327327
#### Customizing Pubsub
328328

329-
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.
329+
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.
330330

331331
Potential methods for discovering peers include:
332332

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

338+
338339
```js
339340
import { createLibp2p } from 'libp2p'
340341
import { tcp } from '@libp2p/tcp'

0 commit comments

Comments
 (0)