//! Wynd: a simple, async WebSocket server library built on Tokio + Tungstenite.
//!
//! This crate exposes:
//! - `wynd::Wynd`: a minimal server with connection/message callbacks
//! - `conn::Conn`: a handle configured per-connection
//! - `types`: basic event types for messages, close and errors
//!
//! Quick start:
//! ```no_run
//! use wynd::{conn::Conn, wynd::Wynd};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), String> {
//! let mut server = Wynd::new();
//! server.on_connection(|conn: &mut Conn| {
//! conn.on_open(|| async {});
//! conn.on_text(|_msg| async {});
//! });
//! server.listen(8080, || {}).await?;
//! # Ok(())
//! # }
//! ```
/// The `conn` module provides the `Conn` struct, which represents a WebSocket connection.
/// The `types` module provides various types used in Wynd.
/// The `wynd` module provides the `Wynd` struct, which represents a WebSocket server.
/// The `tests` module contains tests for Wynd.