# Server.version()

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