connect
call or the URLs provided by the NATS system during earlier connects. This feature allows NATS applications and the NATS system itself to self-heal and reconfigure itself with no additional configuration or intervention.ClosedCB ConnHandler
DisconnectedCB ConnHandler
DisconnectedErrCB ConnErrHandler
ReconnectedCB ConnHandler
DiscoveredServersCB ConnHandler
AsyncErrorCB ErrHandler
Timeout time.Duration
2 * time.Second
PingInterval time.Duration
2 * time.Minute
MaxPingsOut int
2
AllowReconnect bool
true
MaxReconnect int
60
ReconnectWait time.Duration
2 * time.Second
CustomReconnectDelayCB ReconnectDelayHandler
ReconnectJitter time.Duration
100 * time.Millisecond
ReconnectJitterTLS time.Duration
1 * time.Second
ReconnectBufSize int
8 * 1024 * 1024
RetryOnFailedConnect bool
false