Doug A f5e644da8f
feat(webrtc): add WebRTC for WASM environments
This PR implements `Transport` for WebRTC for browsers by using web-sys. Only the `webrtc-direct` spec is implemented. The `webrtc` spec for connecting two browsers with each other is left to a future PR.

Related: https://github.com/libp2p/specs/issues/475.
Related #2617.
Supersedes: #4229.

Pull-Request: #4248.

Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
2023-09-17 19:13:11 +00:00
..

Rust libp2p-webrtc-websys

Browser Transport made available through web-sys bindings.

Usage

Use with Swarm::with_wasm_executor to enable the wasm-bindgen executor for the Swarm.

See the browser-webrtc example for a full example.