# LibTmux.Mcp.TmuxConnectionAccessor.Invalidate

- **Module:** LibTmux.Mcp.TmuxConnectionAccessor
- **Package:** LibTmux.Mcp
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Mcp/Connection/TmuxConnectionAccessor.cs#L147
- **Page:** https://libtmux.org/en/dotnet/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.
