Current state of WebRTC #3875
-
Hi all, I’m trying to test the connectivity of rust-libp2p for:
I would like to ask if the current state of WebRTC in rust-libp2p supports those connectivities. From ROADMAP.md, it seems that only browser-to-server is supported currently, even if I use a relay server as described in https://docs.libp2p.io/concepts/transports/webrtc/. Also, I’d like to ask if I can start from these examples:
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
@thomaseizinger It seems that only WebRTC server-side has been completed by #2622. As I understand, the WebRTC client-side is going to be implemented after resolving the WASM improvement roadmap. Did I understand it correctly?
When I use js-libp2p for the client side, it worked well with the rust-libp2p server. If the WASM side of WebRTC is not completed yet as above, I’ll use js-libp2p for now. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@youngjoon-lee So we've recently built an application that claims universal-connectivity i.e. showcases all the ways different libp2p implementations can connect with one another with their supported transports. The rust-libp2p node also acts as a Circuity Relay v2 Node and helps facilitate browser js-libp2p nodes to establish direct connections with other browser nodes using the webrtc (private to private) transport Here is the app: https://github.com/libp2p/universal-connectivity There's no Wasm involved in this example |
Beta Was this translation helpful? Give feedback.
-
We will soon have a WebTransport implementation for WASM environments: #4015 It should serve as a good blueprint in case somebody wants to attempt implementing WebRTC for WASM. |
Beta Was this translation helpful? Give feedback.
-
Cross-referencing #4248 as I'm working on the |
Beta Was this translation helpful? Give feedback.
I just posted a blog post about my rust-libp2p connectivity tests.
https://oudwud.dev/posts/2305042345-exploring-rust-libp2p/
I’ll keep updating this post once I find something new. Please correct me if I’m wrong.