moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

How to get offline messages after reconnected? #730

Open DayTimeDreamer opened 6 years ago

DayTimeDreamer commented 6 years ago

Hello! How to get offline messages after reconnected? Thank you!

mcollina commented 6 years ago

Use QoS 1 both when subscribing and when publishing. Also clean=false on the client. Il giorno ven 9 mar 2018 alle 01:37 DayTimeDreamer notifications@github.com ha scritto:

Hello! How to get offline messages after reconnected? Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcollina/mosca/issues/730, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL4-EnO-amWPFgJB6EsQ2z9_6Ei1tZks5tcc7AgaJpZM4SjkpF .

DayTimeDreamer commented 6 years ago

I follow your suggestion. But sometimes it doesn't work and sometimes it get can the offline messages.

DayTimeDreamer commented 6 years ago

The qos is null in my mqtt.ascoltatori. Is it right?