Skip to content

v0.3.1 Add connection health check method

Latest

Choose a tag to compare

@jwhitcraft jwhitcraft released this 29 Jan 15:09
929355d

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.