pushwire-client 0.1.1

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