MQTT::Reconnect
Inherits Struct / Value / Object
Controls how a client re-establishes a connection that dropped
unexpectedly. Delays back off exponentially and are capped at max_delay.
Constructors
new(initial_delay : Time::Span = 1.second, max_delay : Time::Span = 30.seconds, max_attempts : Int32 | Nil = nil)
SourceInstance methods
give_up?(attempt : Int32) : Bool
Sourceinitial_delay
Sourcemax_delay
Source