orbitdb / field-manual

The Offical User's Guide to OrbitDB
207 stars 43 forks source link

Update 04_P2P_Part_1.md #174

Closed phonofidelic closed 2 years ago

phonofidelic commented 2 years ago

this.node.swarm.peers() seems to return an array of objects containing both multiaddress and peerId. Since the next section (Chapter 5) relies on getIpfsPeers returning an array of peerIds as strings in connectToCompanions, we need to get the peerId form the object.