# Server.version()

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxVersion.swift#L83
- **Page:** https://libtmux.org/en/swift/latest/reference/server-version()/

```
Server.version()() -> TmuxVersion
```

Which tmux this server runs.

Read from the binary rather than from a running daemon, so it answers
before anything is started. A build this library cannot parse throws
rather than reporting a version it guessed.

## Raises

- `TmuxError`
