Super Excited for this to reduce dependency on gateways to communicate to nodes via the browser.
I have a couple questions in the implementation. It seems the networking example is set up using tcp which doesn’t work for in browser. I found an example in the libp2p library on how to setup web transports but it is seemingly outdated since connectionManager is no longer existing. See here for reference: js-libp2p/index.js at master · libp2p/js-libp2p · GitHub
Also it results in alot of peers being found but being unable to dial to it.
Still abit new to this but is there a example project that shows helia connecting to a kubo node via webTransport and what is required to properly configure the libp2p? Just trying to be able to run cat on a CID and direct connect to a node that I know has the data I need. Currently at IPFS thing as well.
As far as configuring Kubo to announce webtransport addresses, I believe any issues there have been fixed since I last updated my IPFS config, but here’s my config if it helps:
Note that webtransport does not seem to be listening publicly (for Kubo) unless I set my public IP address in Addresses.AppendAnnounce manually. I thought this to have been resolved with fix: fix externally defined webtransport addresses by aschmahmann · Pull Request #2224 · libp2p/go-libp2p · GitHub, but it doesn’t appear to be resolved. When I remove my public IP from AppendAnnounce, my listening Multiaddrs do not list anything except private IPs: 127.0.0.1, 192.168.1.227, ::1, etc…