The healthy? method allows monitoring socket connection health
by tracking the time since the last received message. This enables
external systems to detect stale connections and take appropriate
action (reconnect, log diagnostics, etc.).
The method returns false if no messages have been received,
and compares the time elapsed since the last message against
a configurable threshold.