MQTT.js localForage Store for the browser
Installation
NPM
yarn add mqtt-localforage-store localforage# or npm install --save mqtt-localforage-storeCompile yourself
git clone git@github.com:viniciusbo/mqtt-localforage-store.git && cd mqtt-localforage-storeyarn # or npm install npm run buildcd /distDistribution bundles are located in /dist folder. The build exposes the MQTTLocalForageStore globally.
Usage
;; // Make your own localForage instancesconst incomingDb = localForage;const outgoingDb = localForage; const incomingStore = ;const outgoingStore = ; mqtt;Test
yarn # or npm install npm run test