rama_ws/
lib.rs

1//! WebSocket (WS) support for rama ([RFC 6455]).
2//!
3//! [RFC 6455]: https://datatracker.ietf.org/doc/html/rfc6455
4//!
5//! # Rama
6//!
7//! Crate used by the end-user `rama` crate and `rama` crate authors alike.
8//!
9//! Learn more about `rama`:
10//!
11//! - Github: <https://github.com/plabayo/rama>
12//! - Book: <https://ramaproxy.org/book/>
13
14#![doc(
15    html_favicon_url = "https://raw.githubusercontent.com/plabayo/rama/main/docs/img/old_logo.png"
16)]
17#![doc(html_logo_url = "https://raw.githubusercontent.com/plabayo/rama/main/docs/img/old_logo.png")]
18#![cfg_attr(docsrs, feature(doc_cfg))]
19#![cfg_attr(test, allow(clippy::float_cmp))]
20#![cfg_attr(
21    not(test),
22    warn(clippy::print_stdout, clippy::dbg_macro),
23    deny(clippy::unwrap_used, clippy::expect_used)
24)]
25
26pub mod handshake;
27pub mod protocol;
28pub mod runtime;
29
30pub use crate::protocol::{Message, ProtocolError, frame::Utf8Bytes};
31pub use runtime::AsyncWebSocket;