Skip to content

aetelier_connect::clients::connection_state

Formal connection state machine for the data worker WSS lifecycle. Formal connection state machine for the data worker WSS lifecycle.

ConnectionState models the discrete phases a WebSocket connection passes through. The ConnectionManager drives transitions and emits structured tracing events at each boundary.

State diagram

┌──────────────┐
│ Disconnected │─────────────────────────────┐
└──────┬───────┘                             │
       │ start()                             │
       ▼                                     │
┌──────────────┐                             │
│  Connecting  │                             │
└──────┬───────┘                             │
       │ ws_stream opened                    │
       ▼                                     │
┌──────────────┐                             │
│Authenticating│  (skipped for public feeds) │
└──────┬───────┘                             │
       │ auth_ack / no-op                    │
       ▼                                     │
┌──────────────┐                             │
│  Subscribing │                             │
└──────┬───────┘                             │
       │ sub_ack / first event               │
       ▼                                     │
┌──────────────┐   disconnect   ┌───────────────┐
│  Streaming   │──────────────▶│  Reconnecting  │
└──────────────┘               └───────┬───────┘
       ▲                               │
       └───────────────────────────────┘
                backoff elapsed

Skeleton API reference

This page lists the public items in aetelier_connect::clients::connection_state with a one-line summary each. Signatures and source live in the SDK repository.

Structs

Item Summary
StateTransition Timestamped record of a single state transition.

Enums

Item Summary
ConnectionState Discrete connection lifecycle phase.