-
Notifications
You must be signed in to change notification settings - Fork 160
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. about user properties on automatic reconnect... #640
Comments
Hi @zhangheng1983 - the reasoning for this is also explained here. To set user properties on reconnect, you can add a
|
Hi @zhangheng1983 - have you made any progress on this issue? |
what if the reconnection is handled by the automaticReconnect() from the original client? would I need to handle the reconnection manually ? |
Thanks for your reply. My test result as follows:
|
Now I handle this issue as follows:
|
I think. If you configure automaticReconnect, you not need handle reconnection. Otherwise, you can handle reconnect in DisconnectedListener, or check the client status in additional thread. |
Checklist
issues
.discussions
.❓ Question
Hi,I set user properties as key is “client_info” to connect packet,when MQTT client connect, server can accept the connect packet with "client_info" properties.
But, when client reconnect because of network error etc, the "client_info" properties is absent.
Is the user properties cann't be set to reconnect packet?
How can I set "client_info" properties on connect package and reconnect packet?
Is it possible to notify "client_info" through publish message?
📎 Additional context
The text was updated successfully, but these errors were encountered: