Discordian:
What are the pros/cons of webrtc-star and circuit-relay?
Can they be used in conjunction?
How do I achieve connectivity given my scenarios below? (What am I doing wrong?)
Why do I lose connection after some time to peers I connect to through the relay?
Why can I not reconnect to these peers after the disconnection? I’m still peered with the relay itself.
Any way I can announce my p2p-circuit multiaddress? It doesn’t display in ipfs.id()
, and I need to manually connect.
webrtc-star allows browser-browser communication, circuit-relay is useful when this isn’t possible
Yes.
For star, connecting to local peers is expected, for relay, this:
await ipfs.swarm.connect("/dns6/ipfs.thedisco.zone/tcp/4430/p2p/12D3KooWChhhfGdB9GJy1GbhghAAKCUR99oCymMEVS4eUcEy67nt/p2p-circuit/p2p/<TARGET_PEERID>");
js-ipfs doesn’t implement a keepalive, you have to do this yourself: Peers disconnect every 10 minutes
Not sure
For now I’m going to put an additional software on my node that looks for js-ipfs peers and announces their p2p-circuit multiaddress over a pubsub channel