stream-tungstenite 0.6.1

A streaming implementation of the Tungstenite WebSocket protocol
Documentation
//! Transport layer for establishing underlying connections.
//!
//! This module provides abstractions for different transport mechanisms
//! (TCP, TLS, etc.) that can be used to establish WebSocket connections.
//!
//! # Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────────┐
//! │              Transport Layer                 │
//! │                                             │
//! │  trait Transport                            │
//! │  ┌─────────┐ ┌─────────┐ ┌─────────┐       │
//! │  │   TCP   │ │   TLS   │ │  Mock   │       │
//! │  └─────────┘ └─────────┘ └─────────┘       │
//! └─────────────────────────────────────────────┘
//! ```
//!
//! # Example
//!
//! ```rust,ignore
//! use stream_tungstenite::transport::{Transport, TcpTransport, TransportConfig};
//!
//! // Create a TCP transport with custom config
//! let config = TransportConfig::low_latency();
//! let transport = TcpTransport::with_config(config);
//!
//! // Connect to a host
//! let stream = transport.connect("example.com", 80).await?;
//! ```

mod mock;
mod tcp;
mod traits;

pub use mock::{MockStream, MockTransport};
pub use tcp::TcpTransport;
pub use traits::{Transport, TransportConfig};