# LibTmux::Async::ControlConnection#diagnostics

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/control.rb#L563
- **Public owner:** LibTmux::ControlConnection#diagnostics
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-async-controlconnection-diagnostics/

```
def diagnostics: () -> {
  admitted_requests: ::Integer,
  incomplete_requests: ::Integer,
  queued_requests: ::Integer,
  writing_requests: ::Integer,
  awaiting_reply: ::Integer,
  reserved_wire_bytes: ::Integer,
  retained_reply_bytes: ::Integer,
  stderr_received_bytes: ::Integer,
  subscription_count: ::Integer,
  stopping: bool,
  finished: bool,
  cleanup_error_count: ::Integer,
  limits: {
    max_requests: ::Integer,
    max_command_bytes: ::Integer,
    max_queue_bytes: ::Integer,
    max_line_bytes: ::Integer,
    max_reply_bytes: ::Integer,
    max_stderr_bytes: ::Integer,
    max_subscriptions: ::Integer
  }
}
```

Returns frozen local accounting, without payloads or native liveness I/O.
Admission and byte reservations include completed replies until consumed.
Subscription count includes closed streams retained by this connection.

Behavior contract: Diagnostics.
