# LibTmux::ControlSubscription#diagnostics

- **Module:** LibTmux::ControlSubscription#
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c6d9d21771828e583692ca899ed817f9640d6a55/gems/libtmux/lib/libtmux/control.rb#L160
- **Page:** https://libtmux.org/en/ruby/latest/reference/libtmux-controlsubscription-diagnostics/

```
LibTmux::ControlSubscription#diagnostics() -> { queued_events: ::Integer, retained_event_bytes: ::Integer, gap_pending: bool, overflowed: bool, closed: bool, mode: :reliable | :tail, limits: { max_bytes: ::Integer, max_events: ::Integer } }
```

Returns frozen local buffer state. A reliable overflow keeps its prefix
readable; explicit close discards the prefix and pending loss report.

Behavior contract: Diagnostics.
