Socket
Socket
Sign inDemoInstall

@deadlock-delegate/mqtt

Package Overview
Dependencies
286
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @deadlock-delegate/mqtt

MQTT plugin for core


Version published
Maintainers
1
Created

Readme

Source

MQTT plugin for Ark Ecosystem

MQTT plugin that broadcasts events to an MQTT broker. At the moment this plugin only broadcasts but might be extended with additional features as well as including an MQTT server so users won't have to run a separate MQTT broker.

If you have any feature requests don't forget to open an Issue.

❤️ Support maintenance and development of plugins

If you find this or other plugins useful please consider voting for deadlock delegate on Solar or Ark networks.

Installation

Adding plugin to config

Before restarting your process, you need to add the plugin into the very end core.plugins or relay.plugins section of app.json file:

{
    "package": "@deadlock-delegate/mqtt",
    "options": {
        "enabled": true,
        "events": ["block.forged"],
        "topic": "ark/events",
        "mqttBroker": "mqtt://localhost:1883"
    }
}

For production (eg. devnet/mainnet):

  1. Install plugin: <command> plugin:install @deadlock-delegate/mqtt, eg: ark plugin:install @deadlock-delegate/mqtt or solar plugin:install @deadlock-delegate/mqtt
  2. Add plugin to app.json
  3. Start your node as you usually start it

For development (eg. testnet):

You can run a development MQTT broker by navigating to etc/ directory in this project a run docker-compose up. This will start a MQTT broker in docker.

Assuming you don't run testnet locally via docker:

  1. Clone this plugin into plugins/ directory of the core project
  2. Add plugin to app.json, for testnet the file can be found in: core/packages/core/bin/config/testnet/app.json
  3. Go into the plugin's directory: cd mqtt
  4. Build plugin: yarn build
  5. Run yarn full:testnet inside core/packages/core directory to start testnet with mqtt plugin

Credits

  • roks0n
  • console
  • All Contributors

License

MIT © deadlock delegate

Keywords

FAQs

Last updated on 12 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc