mcollina / mqtt-level-store

Store your in-flight MQTT message on Level, for Node
MIT License
24 stars 11 forks source link

levelstore started too late #6

Closed gitawego closed 7 years ago

gitawego commented 7 years ago

in some cases, the levelstore started too late after the client connected to broker. this makes some of messages are lost. I'd like to know if there is any way to detect if the level store's successfully launched before establish the connection to broker.

mcollina commented 7 years ago

Probably. You can always start the db, and then connect. Wait that levelup is ready.

mcollina commented 7 years ago

I've just released a new version. Feel free to reopen if this is still a bug.