How to use aedes - 1 common examples

To help you get started, we’ve selected a few aedes 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 marvinroger / homie-server / lib / servers / mqtt.js View on Github external
start () {
    this.mqtt = aedes({
      persistence: aedesPersistenceLevel(level(path.join(this.dataDir, '/db/broker.db')))
    });
    this.server = createServer(this.mqtt.handle);

    dispatcher.on('ready', () => {
      pauseable.resume(this.mqtt);
    });

    this.mqtt.on('client', (client) => {
      log.debug(`${client.id} connected to MQTT`);
    });

    this.mqtt.on('clientDisconnect', (client) => {
      log.debug(`${client.id} disconnected from MQTT`);
    });

aedes

Stream-based MQTT broker

MIT
Latest version published 3 months ago

Package Health Score

85 / 100
Full package analysis

Popular aedes functions