nats-architecture-and-design icon indicating copy to clipboard operation
nats-architecture-and-design copied to clipboard

Add reconnect method

Open Jarema opened this issue 1 year ago • 3 comments

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 bee updated in #258

Clients and Tools

  • [ ] Go @piotrpio
  • [x] Java @scottf https://github.com/nats-io/nats.java/pull/1100
  • [x] JavaScript @aricart
  • [x] .Net @scottf https://github.com/nats-io/nats.net/pull/906
  • [ ] C @levb
  • [ ] Python @wallyqs
  • [ ] Ruby @wallyqs
  • [x] Rust @Jarema
  • [ ] .Net V2 @mtmk
  • [x] Swift @Jarema @piotrpio

Other Tasks

  • [ ] docs.nats.io updated @bruth
  • [ ] Update ADR to Implemented
  • [ ] Update client features spreadsheet

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

Jarema avatar Jan 04 '24 07:01 Jarema

Hi, Team!

This is min.k from Hyperconnect (Paid customer).

Please also add nats.swift to the target libraries that add this feature.

pkgonan avatar Apr 04 '24 16:04 pkgonan

And please add nats.ws!

pkgonan avatar Apr 04 '24 16:04 pkgonan

Nats.ws is covered here by the Javascript client. All js clients share the API codebase @pkgonan

Jarema avatar Apr 04 '24 17:04 Jarema