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.

贡献者指南