mcollina / mqtt-level-store

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

make store data overwritable #20

Closed ogis-yamazaki closed 3 years ago

ogis-yamazaki commented 3 years ago

Packets cannot be overwritten by PUT function. I fixed the put function.

Mqtt v5 has Topics Alias. Topic Alias ​​may omit the topic name. The topic name cannot be resolved when reconnecting and resending the omitted packet from the store. Therefore, I want to overwrite and update the topic name part that was omitted after storing it in the store.

mcollina commented 3 years ago

Can you please add a unit test?

ogis-yamazaki commented 3 years ago

@mcollina

Added a test. Please confirm.