# TmuxContext.server(tmuxExecutable:)

- **Module:** TmuxContext
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxContext.swift#L87
- **Page:** https://libtmux.org/en/swift/latest/reference/tmuxcontext-server(tmuxexecutable-)/

```
TmuxContext.server(tmuxExecutable:)(tmuxExecutable: String) -> Server
```

A server addressed at this context's socket.

Separate from reading the context because addressing can fail — a socket
path has a hard length limit — where reading an environment variable
cannot.

## Raises

- `TmuxError`
