Expand description
Adapter authentication state independent of the WebSocket transport state.
AuthTracker separates a specific authentication attempt from the shared session state.
AuthTracker::begin returns a oneshot receiver for the attempt and fails any earlier pending
attempt as superseded. AuthTracker::succeed and AuthTracker::fail resolve the active
attempt and wake state waiters. AuthTracker::invalidate returns an authenticated session to
unauthenticated without resolving a pending attempt or clearing terminal failure.
§Client integration
Registering a tracker with the client invalidates it on reconnectable connection loss and fails
it on terminal shutdown. When authentication-gated replay is enabled, ordinary buffered sends
wait for Authenticated and are discarded on Failed. The adapter remains responsible for
sending authentication, interpreting the response, and ordering resubscription.
Structs§
- Auth
Tracker - Tracks authentication state for WebSocket connections.
Enums§
- Auth
State - Authentication state for a WebSocket session.