nano-stream-mqtt
v0.1.1
Published
A tiny and performant process that streams block data from a Nano currency node over the MQTT messaging protocol
Maintainers
Readme
nano-stream-mqtt
A tiny and performant client that streams block data from a Nano currency node over the MQTT messaging protocol.
It builds on the socket stream of block data set up by the nano-stream-x library.
Installation
Install both nano-stream-x and nano-stream-mqtt as global packages:
npm install --global nano-stream-x
npm install --global nano-stream-mqttUsage
Start the stream
nano-stream-xThis will start a streaming server on 127.0.0.1:3000. To override these:
nano-stream-x host=ip6-localhost port=3001Start the MQTT client
nano-stream-mqttBy default you will connect to mqtt://127.0.0.1. To connect to a different host:
nano-stream-mqtt host=mqtts://mosquitto.example.comData will be sent to the default topic nanostream. To set a different topic:
nano-stream-mqtt topic=my_topicTo connect with a username and password:
nano-stream-mqtt username=my_username password=my_passwordConfigure your Nano node to send data to nano-stream-x
Your Nano node is easily configured to send block processing data to a server (in this case nano-stream-x). See the wiki article (external link) for how to set this up.
