websock-proto 0.4.0

Protocol-level primitives shared across websock transports.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Protocol-level primitives shared across websock transports.
//!
//! This crate remains intentionally small and transport-agnostic so the public
//! API stays consistent across native and WebAssembly targets.
//! It also defines the core trait contracts shared by native and WASM transports.

mod error;
mod message;
mod options;
mod transport;

pub use bytes::Bytes;
pub use error::{Error, Result};
pub use message::{CloseFrame, Message};
pub use options::{ConnectOptions, ServerOptions, default_ws_alpn};
pub use transport::{LocalBoxFuture, WebSocketConnection};