Understand Pusher connection states
masterThe pusher.connection object tracks the current state of the connection. Possible states include:
| State | Description |
|---|---|
initialized | Initial state. No event is emitted. |
connecting | Attempting to connect or reconnecting after failure. |
connected | Connection is open and authenticated. |
unavailable | Connection is temporarily unavailable (e.g., no internet or service down). |
failed | Browser does not support WebSockets and no HTTP fallback was found. |
disconnected | Connection was intentionally closed. |