This repository requires a version of go-libp2p with WebRTC transport. Clone the go-libp2p repository locally and add a replace directive to the go.mod file.
replace github.com/libp2p/go-libp2p => <path to go-libp2p>
Run ./webrtc-test -l <port>
to listen on WebRTC.
For other transports use:
./webrtc-test -l <port> -t <transport>
Supported values for transport are:
- tcp
- quic
- websocket
- webtransport
- webrtc
This should output a multiaddr which can be used by the client to connect.
Run webrtc -d <multiaddr> -c <number of connections> -s <number of streams>