Skip to content

v0.22.0: Automatic Reconnect

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Jul 10:15
· 19 commits to refs/heads/main since this release
332109b

What’s Changed

This release adds a new AutomaticReconnect option that will cause the client to try to reconnect to the broker when the connection is lost or dropped.

Reconnection is periodically retried with a backing off strategy. The initial attempt will be made after 5 seconds from disconnection and will retry at an increasing periodic delay up to 60 seconds until successfully reconnected.

var options = new HiveMQClientOptionsBuilder()
                    .WithAutomaticReconnect(true)
                    .Build();

// Create a new client with the configured options
var client = new HiveMQttClient(options);

👥 List of contributors

@pglombardo

NuGet Package

v0.22.0 is available on NuGet:
https://www.nuget.org/packages/HiveMQtt/0.22.0