# LibTmux.Control.reconnect/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/control.ex#L447
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-control-reconnect-2/

```
reconnect(control, options \\ [])
@spec reconnect(t(), [call_option()]) ::
        {:ok, t()} | {:error, LibTmux.Error.t()}
```

Explicitly obtains the ready epoch, starting a replacement only after retirement.

A ready epoch returns itself. Call `close/2` first to require replacement.
The default 5000ms budget covers metadata admission, retirement and startup.
A successful reply pins the acknowledged endpoint even if it becomes stale
before this caller resumes. It never follows a later view or replays work.
Errors report unknown certainty about existing effects. Attachment counts
include the control client; reconnect can attach one replacement client.

See the [worked example](api-examples.html#supervised-control).

## Parameters

- `control` (`t()`)
- `options` (`[call_option()]`)
