Table of Contents

Property ReconnectWaitMax

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

ReconnectWaitMax

Backoff delay limit for reconnect attempts. (default: 5 seconds)

public TimeSpan ReconnectWaitMax { get; init; }

Property Value

TimeSpan

Remarks

When the connection is lost, the client will wait for ReconnectWaitMin before attempting to reconnect. Every failed attempt will increase the wait time by 2x, up to ReconnectWaitMax. If ReconnectWaitMax is equal to or less than ReconnectWaitMin, the delay will be constant.