-
Notifications
You must be signed in to change notification settings - Fork 180
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
[QUESTION] What is keepAlivePeriod? #554
Comments
These settings are nothing to with flutter or your application being a mobile application, they are part of the MQTT specification, see sections 3.12 and 3.13 or just type 'keepalive' in the search bar of the package API. Autoreconnect can be set to anything you want for your use case, the platform makes no difference. What I said was autoreconnect was not intended to recover from known platform events like foreground/background its more intended for sudden network/broker failure, some users use this, some users prefer to use keepalive to monitor broker/network availability, again your preference. What issue are you reporting here? If your saying the package API documentation is unclear/wrong in these areas then please document this and I'll have a look at it. |
Thank you for the link to the specification, @shamblett ! Here is the extract from it in case someone else is looking for this information.
So my next question is: What is the recommended value for |
Dear @shamblett, from your docs I see:
But what exactly is "keep alive" in this context and what should the value of this parameter be for a Flutter app? I have seen examples where this value was set to 30 and some examples where it is set to 1200.
Is this parameter value also dependent on some other parameters, like
autoReconnect
? I think you mentioned thatautoReconnect
should be set tofalse
for Flutter mobile apps and reconnection should be managed manually. Is that correct?The text was updated successfully, but these errors were encountered: