Something went wrong. Try again.
And Iroh inspired WebRTC experiment
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344//! Peer-ID authenticated messages over direct WebRTC or an encrypted WebSocket relay.//!//! Hori reuses iroh's Ed25519 identities, not its QUIC transport. Signaling is explicit://! configure a shared relay for automatic setup, or exchange [`Offer`] and [`Answer`]//! through your application and finish both pending connections concurrently.//! See `examples/ping.rs` and the crate README.mod connection;mod crypto;mod diagnostics;pub mod discovery;mod endpoint;mod error;mod packet_crypto;pub mod protocol;mod rtc;#[cfg(test)]mod rtc_bench;#[cfg(feature = "udp-buffers")]mod rtc_runtime;mod session;pub mod signal;mod stream;mod wire;
pub mod relay;pub use anyhow::Result;pub use connection::{ Connection, MAX_DATAGRAM_SIZE, MAX_MESSAGE_SIZE, RecvStream, SendStream, TransportKind,};/// Per-direction stream byte credit in this build.pub const STREAM_WINDOW_BYTES: usize = stream::WINDOW;/// Maximum application bytes in a stream record, before framing and encryption.pub const MAX_STREAM_CHUNK_SIZE: usize = connection::MAX_CHUNK_SIZE;pub use endpoint::{Endpoint, EndpointBuilder, Incoming, Outgoing, PendingIncoming, RelayMode};pub use iroh_base::{EndpointId, PublicKey, SecretKey};pub use signal::{Answer, Offer};
pub use error::{ApplicationClose, ConnectionError, StreamError};
pub use diagnostics::{ ConnectionState, ConnectionStats, IceCandidateInfo, IceCandidatePairInfo, PathInfo,};pub use discovery::EndpointAddr;