Skip to main content
Version: Next (unreleased)

Health Checks

if conn.IsHealthy() {
// Connection is open and responsive
}

if conn.IsClosed() {
// Connection has been closed
}

IsHealthy reflects the connection only — a channel-level exception on a publisher or consumer is caught and repaired independently (see Connection → Channel Recovery) and does not flip it to unhealthy.