# hypr/disconnect
Close both of a connection's sockets. Pending `hypr/call` futures reject and
`hypr/info` afterwards reports `:state :failed`.
## Syntax
[hypr/disconnect $h]
## Parameters
- `$h` — connection from `hypr/connect`
## Examples
[hypr/disconnect $h] [hypr/info $h] # → %{:state :failed ...}
## Returns
`nil`; `%Err{:message}` when the argument is not a hypr connection.
Disconnecting twice is safe (the second call is a no-op).
## See Also
`hypr/connect`, `hypr/info`