# server.Server.version

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L673
- **Page:** https://libtmux.org/reference/ts/server-server-version/

```
server.Server.version() -> Promise<TmuxVersion>
```

The tmux version this server is running.

The version is probed once per connection and cached with the rest of the
server's capabilities, so asking repeatedly costs nothing after the first.

## Example

```ts
const version = await server.version();
version.major; // 3
```
