# hypr/info
Snapshot of a hypr connection's state.
## Syntax
[hypr/info $h]
## Parameters
- `$h` — connection from `hypr/connect`
## Examples
[hypr/info $h] # → %{:state :ready :subs 0 :pending 0}
## Returns
A map with:
- `:state` — `:connecting`, `:ready`, or `:failed` (closed or missing
sockets report `:failed`)
- `:subs` — active event subscriptions
- `:pending` — commands awaiting replies
`%Err{:message}` when the argument is not a hypr connection.
## See Also
`hypr/connect`, `hypr/subscribe`, `hypr/call`