Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reconnect method #259

Open
5 of 13 tasks
Jarema opened this issue Jan 4, 2024 · 3 comments
Open
5 of 13 tasks

Add reconnect method #259

Jarema opened this issue Jan 4, 2024 · 3 comments
Assignees
Labels
client Client related work enhancement New feature or request

Comments

@Jarema
Copy link
Member

Jarema commented Jan 4, 2024

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

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 Jarema added enhancement New feature or request client Client related work labels Jan 4, 2024
@ripienaar ripienaar removed their assignment Jan 4, 2024
@scottf scottf changed the title Add reconnect method Add (force) reconnect method Mar 20, 2024
@pkgonan
Copy link

pkgonan commented Apr 4, 2024

Hi, Team!

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

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

@pkgonan
Copy link

pkgonan commented Apr 4, 2024

And please add nats.ws!

@Jarema
Copy link
Member Author

Jarema commented Apr 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Client related work enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants