How to use the mqtt.Store function in mqtt

To help you get started, we’ve selected a few mqtt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github boneskull / mqttletoad / lib / index.js View on Github external
/**
         * If `false`, this is a clean session
         * @public
         * @memberOf client
         */
        this.sessionPresent = Boolean(connack.sessionPresent);
      })
      .once('error', reject)
      .once('connect', function() {
        resolve(toadpatch(this, opts));
      });
  });
};

exports.patch = toadpatch;
exports.Store = MQTT.Store;