# LibTmux::Server#diagnostics

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/server.rb#L238
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-server-diagnostics/

```
def diagnostics: () -> {
  admitted_requests: ::Integer,
  reserved_process_slots: ::Integer,
  control_connections: ::Integer,
  closed: bool,
  limits: {
    max_requests: ::Integer,
    max_controls: ::Integer,
    close_timeout: ::Numeric
  }
}
```

Returns a frozen local snapshot, including after close. Slots are admitted
requests; control connections are retained registrations, not OS clients.

Behavior contract: Diagnostics.
