libp2p/js-libp2p-examples

Add WebRTC private to public example

開放

#204 建立於 2025年2月18日

 (3 則留言) (3 個反應) (0 位負責人) (63 個分叉)auto 404
good first issuehelp wanted

倉庫指標

星標
 (106 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

We have an example for WebRTC private to private (e.g. two browser peers behind NATs) where we use a Circuit Relay server to exchange SDP messages to establish a direct connection between the two nodes.

As of @libp2p/webrtc@5.1.0 support has landed for WebRTC-Direct listeners in Node.js, so it would be great to add a private to public example where a Node.js listener is created and a browser dials it without needing a relay.

貢獻者指南