MQTT.js localForage Store for the browser
Installation
NPM
yarn add mqtt-localforage-store localforage# or npm install --save mqtt-localforage-store
Compile yourself
git clone git@github.com:viniciusbo/mqtt-localforage-store.git && cd mqtt-localforage-storeyarn # or npm install npm run buildcd /dist
Distribution 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