WebRTC Documentation

How to setup a server relay for webRTC? The documentation is lacking and the only example I could find is in go here and it seems incomplete? go-server

For example, the multiaddr for a client contains a cert hash such as this

multiaddr('/ip4/0.0.0.0/udp/56093/webrtc/certhash/uEiByaEfNSLBexWBNFZy_QB1vAKEj7JAXDizRs4_SnTflsQ')

How do I setup a server with dtls in conjunction with a generated self signed certificate and what multihash format needs to be used in the multiaddr.

Any help or documentation would be great…

Hi, checkout the GitHub - libp2p/universal-connectivity: Realtime decentralised chat with libp2p showing ubiquitous peer-to-peer connectivity between multiple programming languages (Go, Rust, TypeScript) and runtimes (Web, native binary) using QUIC, WebRTC and WebTransport and then build the rust node, it shows an example how to create a webrtc-direct node.

1 Like