PusherConnectState enum

The connection state between the pusher and the push target.

State machine (typical transitions):

                    startPush
  DISCONNECTED ─────────────▶ CONNECTING
      ▲                           │
      │                           │ join/push succeeded
      │                           ▼
      │                       CONNECTED
      │                           │
      │            network jitter / dropped, SDK auto-reconnects
      │                           ▼
      │                       CONNECTING
      │                           │
      │    reconnect succeeded ─▶ CONNECTED
      └─────  reconnect failed / stopPush / release

Note: DISCONNECTED is the initial state; it is also returned to after calling stopPush / release. The auto-reconnect process reuses CONNECTING, without distinguishing "first connection" from "reconnecting".

Inheritance
Available extensions

Values

disconnected → const PusherConnectState

Not connected. Initial state, or after actively stopping the push / final reconnect failure.

const PusherConnectState(0)
connecting → const PusherConnectState

Establishing connection. Used for both the first room-join handshake and auto-reconnect after a disconnection.

const PusherConnectState(1)
connected → const PusherConnectState

Connected, the push link is normal.

const PusherConnectState(2)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<PusherConnectState>
A constant List of the values in this enum, in order of their declaration.