mqttjs/MQTT.js

send PingREQ

BenAhrdt opened this issue · 7 comments

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();????

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

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

But is the PingREQ Send automaticaly?

But is the PingREQ Send automaticaly?

Yeah it is

And how i configure the keepalive?

@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

@robertsLando it looks good