egg-mqttx

mqtt plugin for egg

Usage no npm install needed!

<script type="module">
  import eggMqttx from 'https://cdn.skypack.dev/egg-mqttx';
</script>

README

egg-mqttx

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-mqttx --save

Usage

// {app_root}/config/plugin.js
exports.mqttx = {
  enable: true,
  package: 'egg-mqttx',
};

Configuration

// {app_root}/config/config.default.js
exports.mqttx = {
  client: {
    url: 'mqtt://localhost',
  },
};

Example

Questions & Suggestions

Please open an issue here.

License

MIT