1.8.6 • Published 1 year ago

@iota/mqtt.js v1.8.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

MQTT

This package provides mqtt support.

Install

npm install @iota/mqtt.js@1.9.0-stardust.1

MQTT Operations

You can create a MQTT client which once connected can stream the following feeds.

  • milestonesLatest
  • milestonesConfirmed
  • messageMetadata - Metadata updates for a specified messageId
  • output - Output updates for a specified outputId
  • addressOutputs - Address output updates for a specified address
  • address25519Outputs - Address output updates for a specified ed25519 address
  • messagesRaw - All messages in binary form
  • messages - All messaged decoded to objects
  • indexRaw - All messages for a specified indexation key in binary form
  • index - All messages for a specified indexation key in object form
  • messagesMetadata - All metadata updates

Usage

import { MqttClient } from "@iota/mqtt.js";

const mqttClient = new MqttClient(MQTT_ENDPOINT);

mqttClient.messages((topic, data, raw) => console.log(topic, data))

Additional Examples

Please find other examples in the ./examples folder.

  • Mqtt - Using mqtt to read streaming messages.
  • Browser Mqtt - Using mqtt to read streaming messages in the browser.
2.0.0-rc.3

1 year ago

2.0.0-rc.2

1 year ago

2.0.0-rc.1

2 years ago

1.9.0-stardust.8

2 years ago

1.9.0-stardust.9

2 years ago

1.9.0-stardust.7

2 years ago

1.9.0-stardust.5

2 years ago

1.9.0-stardust.6

2 years ago

1.9.0-stardust.2

2 years ago

1.9.0-stardust.3

2 years ago

1.9.0-stardust.4

2 years ago

1.9.0-stardust.1

2 years ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.2

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

0.1.0

3 years ago