Closed SgtPooki closed 1 year ago
This should probably be transferred to the appropriate libp2p repo, but I thought it appropriate to node issues with using helia while it's still being built up
this works though
helia.libp2p.addEventListener('peer:discovery', (evt) => {
console.log('Discovered %s', evt.detail.id.toString()) // Log discovered peer
})
Unfortunately I don't think you can transfer issues between orgs. Please can you examine the stack trace to see where the code tries to read the id
property and open an issue in the appropriate repo.
I'm trying to implement some ipfs-examples/helia-examples (part of https://github.com/ipfs/helia/issues/43) and I was trying to debug peer connections by listening to events using
onDiscoveryPeer
and it's failing with the errorUncaught TypeError: Cannot read properties of undefined (reading 'id')