Crate webrtc_websys

Available on crate feature webrtc-websys only.
Expand description

§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.

Structs§

Config
Config for the Transport.
Connection
A WebRTC Connection.
Stream
A stream over a WebRTC connection.
Transport
A WebTransport Transport that works with web-sys.

Enums§

Error
Errors that may happen on the Transport or the Connection.