WebRTC connection requires the peers to exchange signal data. This can be through a middleman server, Qr code or even pen & paper.
I've made a library that uses WebTorrent trackers to exchange the signal data and make P2P connections : https://github.com/subins2000/p2pt