# `ExCEP.Gateway.ReconnectWorker`

Supervisor-friendly auto-reconnecting CEP Gateway client worker with exponential backoff.

Modeled after `ExIEC61850.IEC61850.Client.ReconnectWorker`. Manages an underlying
`ExCEP.Gateway.Client`, automatically reconnects on initial failure or passive disconnect,
and invokes `:on_connected` after every successful (re)connection.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `connected?`

```elixir
@spec connected?(GenServer.server()) :: boolean()
```

Returns `true` if the worker is currently connected.

# `get_client`

```elixir
@spec get_client(GenServer.server()) :: pid()
```

Returns the underlying `ExCEP.Gateway.Client` pid.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
