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

send PingREQ #1863

Closed
BenAhrdt opened this issue May 12, 2024 · 7 comments · Fixed by #1866
Closed

send PingREQ #1863

BenAhrdt opened this issue May 12, 2024 · 7 comments · Fixed by #1866

Comments

@BenAhrdt
Copy link

Hi. Actual we have an issue with keepalive.
If i set it to more than 0 the client closes and reconnect every 5 oder 10 minutes.

Have i to send an pingreq manually?
If yes => How can i send it?
Is ther something link client.pingReq();????

@robertsLando
Copy link
Member

robertsLando commented May 13, 2024

@BenAhrdt What mqttjs version are you using? Does it work with 5.5.4?

@BenAhrdt
Copy link
Author

The Last Version i Check it worked was 5.3.6
Actual i cant Check this. Im Not at Home

@BenAhrdt
Copy link
Author

But is the PingREQ Send automaticaly?

@robertsLando
Copy link
Member

But is the PingREQ Send automaticaly?

Yeah it is

robertsLando added a commit that referenced this issue May 13, 2024
* fix: do not shift pings on 'publish' packets

Fixes #1863 #1861

* fix: tests
@BenAhrdt
Copy link
Author

And how i configure the keepalive?

@robertsLando
Copy link
Member

@BenAhrdt Use 5.6.0 you don't have to configure anything, you can just choose a keepalive in options but it is 60 seconds by default if not specified and it's automatically handled by MQTTjs

@BenAhrdt
Copy link
Author

@robertsLando it looks good

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 a pull request may close this issue.

2 participants