Expand description
WSOperatorSession: the 3-trait (SeniorBridge/SpawnHook/Operator) WS session object.
WSOperatorSession: 1 sid = 1 session = 3 traits co-hosted (SeniorBridge /
SpawnHook / Operator). Registered simultaneously into 3 registries under
the same sid — the canonical pattern where 1 WS connection covers all 3
faces of the Operator role (judgment / observation / execution).
tx is a Mutex<Option<Sender>>: None on disconnect, swappable to
Some(new_tx) on reconnect. The pending HashMap persists on the session
side, so a client holding answer/ack values across a disconnect can reconnect
and resend them.
For the detailed S↔C message flow, see the overview figure in mod.rs.
Structs§
- WSOperator
Session - 1 sid = 1 session. Looked up by sid in the
operator_sessionsstore on reconnect.