# LibTmux::Async::Server#list_clients

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/operations.rb#L93
- **Public owner:** LibTmux::Server#list_clients
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-async-server-list_clients/

```
def list_clients: (
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::Array[
  {
    name: ::String,
    pid: ::Integer,
    created: ::Integer,
    tty: ::String?,
    session_id: ::String?,
    control: bool
  }
]
```

Behavior: Live acquisition.

Behavior contract: Live acquisition.

## Parameters

- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `list_clients`.

- [`list-clients`](/en/tmux/latest/manual/list-clients/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_list_clients_entry`](/en/tmux/latest/reference/c-variable-cmd_list_clients_entry/) (attribute)
- [`cmd_list_clients_exec`](/en/tmux/latest/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function)
