# TmuxContext.server(tmuxExecutable:)

- **Module:** TmuxContext
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/TmuxContext.swift#L74
- **Page:** https://libtmux.org/reference/swift/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`
