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

fix: reuse session to receive data from subscriptions after reconnect #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Maddin-619
Copy link

In case of a mqtt reconnect event with the current configuration the subscriptions will not be recreated after the auto reconnect. As a result, the panels no longer receive any data. Refreshing the browser doesn't help.

There are to ways to fix that:

  1. We need to set all topic states to unsubscribed in case of a disconnect and recreate the subscriptions after a successful reconnect.
  2. Set the clean session config to false. Than the broker will reactivate all subscriptions for that client id automatically and will publish data right after reconnecting. (my suggestion)

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2024

CLA assistant check
All committers have signed the CLA.

@Maddin-619 Maddin-619 force-pushed the fix/auto_reconnect_subscriptions branch from 2e2e034 to 759891c Compare April 29, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants