# tmux.Server.IsAlive

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/server.go#L140
- **Page:** https://libtmux.org/reference/go/tmux-server-isalive/

```
tmux.Server.IsAlive(ctx: context.Context) -> (bool, error)
```

IsAlive reports whether a tmux server answers on the configured socket. Only an absent server reports false without an error: a socket that exists but cannot be reached, such as one the process may not read, is a question that could not be answered and is returned as an error.
