nats-io / nats.net.v1

The official C# Client for NATS
Apache License 2.0
646 stars 154 forks source link

Add reconnect method #868

Closed scottf closed 2 months ago

scottf commented 6 months ago

Overview

Client should have a way that allows users to force reconnection process. This can be useful for refreshing auth or rebalancing clients.

When triggered, client will drop connection to the current server and perform standard reconnection process. That means that all subscriptions and consumers should be resubscribed and their work resumed after successful reconnect where all reconnect options are respected.

For most clients, that means having a reconnect method on the Client/Connection handle.

Connection spec has been updated in #258

ADR Issue

https://github.com/nats-io/nats-architecture-and-design/issues/259

ideahitme-github commented 2 months ago

any update on this feature ?