Skip to main content

pushwire_client/
auth.rs

1//! Authentication handshake logic.
2//!
3//! The auth flow is handled inline during transport connection:
4//!
5//! - **WebSocket** (`connection::connect_ws`): Sends `SystemOp::Auth` as the
6//!   first text message, waits for `SystemOp::AuthOk` response.
7//! - **SSE** (`connection::connect_sse`): Auth params are passed as URL query
8//!   parameters; `AuthOk` arrives as the first SSE event.
9//!
10//! Resume is supported by including `resume_cursors` in the auth message.
11//! The server replays any buffered frames from the requested cursor positions.