Skip to main content

antenna_client_web/
lib.rs

1//! WebAssembly platform driver for the antenna P2P mesh protocol.
2//!
3//! Wraps `antenna-protocol`'s `MeshNodeFSM` and bridges it to the browser's
4//! `RTCPeerConnection`, `RTCDataChannel`, and `WebSocket` via `web-sys`.
5
6mod dispatcher;
7mod driver;
8mod peer;
9#[cfg(feature = "signaling-client")]
10mod signaling;
11mod storage;
12mod utils;
13mod webrtc;
14
15pub use dispatcher::{js_message, js_no_arg, js_peer};
16pub use peer::Peer;
17#[cfg(feature = "signaling-client")]
18pub use signaling::SignalingClient;
19pub use storage::Storage;
20
21pub(crate) use driver::Driver;
22pub(crate) use utils::JsEventCallback;
23pub(crate) use webrtc::{ConnectionManager, DataChannelManager, PeerConnectionManager};