# LibTmux.Mcp.TmuxConnectionAccessor.Invalidate

- **Module:** LibTmux.Mcp
- **Package:** LibTmux.Mcp
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Mcp/Connection/TmuxConnectionAccessor.cs#L147
- **Page:** https://libtmux.org/en/csharp/latest/mcp/reference/libtmux-mcp-tmuxconnectionaccessor-invalidate/

```
LibTmux.Mcp.TmuxConnectionAccessor.Invalidate(socketName: string?) -> void
```

Forgets a cached server so the next call reconnects.

A materialized handle names one tmux <em>process</em>. Killing the
server and starting another gives the same socket a different process,
and the old handle then refuses to be used rather than quietly
answering for a server that no longer exists.

## Parameters

- `socketName` (`string?`): The socket, or null for the configured default.
