Closed
Description
Done criteria
- libp2p's WebRTC transport is enabled by default.
- There are corresponding docs that describe how/why to use this.
Background
WebRTC provides another way for browsers to connect with the rest of the libp2p network (beyond WebTransport which is Chromium only at least as of 2023-03-14). We want to enable browser nodes to be able to communicate easily with other nodes in the network. To accomplish this we need a good amount of nodes in the network to have webtransport/webrtc listen addresses. Getting Kubo nodes having WebTransport listening by default is a good way to increase the number of nodes that browser nodes can connect to.
Preconditions
- go-libp2p WebRTC transport (WebRTC Direct transport implementation libp2p/go-libp2p#2337 ) is merged and released.
Notes about the work involved
- Changelog entry
- Config update (similar to WebTransport in https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmtransportsnetworkwebtransport )
- Documenting the browser/Kubo communication story is covered Document how to connect browser nodes with Kubo nodes using WebTransport ipfs-docs#1286
- Similar issues from when we did this for WebTransport:
- feat: add webtransport as an optin transport #9293
- Enable WebTransport by default #9292
- docs: add WebTransport docs #9314
- With WebTransport we first had this as experimental. This may change, but my current proposal is that we enable it by default from the start