Skip to main content

actr_hyper/wire/webrtc/
mod.rs

1//! WebRTC subsystem
2//!
3//! Complete WebRTC P2P ConnectManage, package include :
4//! - signaling protocol quotient (Offer/Answer/ICE)
5//! - Connect build independent andManage
6//! - OutboundGate Implementation
7
8pub(crate) mod connection; // WebRtcConnection Implementation
9mod coordinator;
10pub(crate) mod gate;
11pub(crate) mod negotiator;
12mod signaling;
13pub(crate) mod trace;
14
15// Re-export public WebRTC surface from this module boundary; internal hook
16// plumbing stays crate-private except under test-utils, where integration
17// tests can install recorders without standing up a full node.
18#[cfg(feature = "test-utils")]
19pub use coordinator::WebRtcCoordinator;
20#[cfg(not(feature = "test-utils"))]
21pub(crate) use coordinator::WebRtcCoordinator;
22pub(crate) use coordinator::{NETWORK_RECOVERY_TIMEOUT, NetworkRecoveryStatus};
23pub use negotiator::WebRtcConfig;
24#[cfg(not(feature = "test-utils"))]
25pub(crate) use signaling::WebSocketSignalingClient;
26pub use signaling::{
27    AuthConfig, AuthType, ConnectionState, DisconnectReason, ReconnectConfig, SignalingClient,
28    SignalingConfig, SignalingEvent, SignalingStats,
29};
30#[cfg(not(feature = "test-utils"))]
31pub(crate) use signaling::{HookCallback, HookEvent};
32#[cfg(feature = "test-utils")]
33pub use signaling::{HookCallback, HookEvent, WebSocketSignalingClient};