Skip to main content

brokapi_bcs_protocol/ws/
mod.rs

1//! The WebSocket side: the client, the background session and the frame models.
2//!
3//! * [`client`]: [`BcsWsClient`](client::BcsWsClient) opens sessions, one per channel.
4//! * [`session`]: [`WsSession`](session::WsSession) keeps one channel alive: reconnect, heartbeat,
5//!   restoring subscriptions.
6//! * [`models`]: the frames the broker sends and the commands you send.
7//! * [`parse_incoming`]: turns one text frame into an
8//!   [`IncomingMessage`](crate::models::messages::IncomingMessage).
9
10pub mod client;
11pub mod models;
12mod parser;
13
14pub use parser::parse_incoming;
15pub mod session;