iotaledger / iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Apache License 2.0
55 stars 39 forks source link

Add MQTT #102

Open Thoralf-M opened 2 years ago

Thoralf-M commented 2 years ago

Description

Add optional MQTT listener to subscribe to the wallet address. When an event is detected, the wallet should be updated with it. Instead of having the logic to update the wallet in two places (MQTT + syncing), we could maybe just call sync with force true to get the wallet updated and without the need of adding extra logic. When MQTT and background syncing is enabled (and working: connected to a node), the background syncing interval should be increases, since we should then get notified from MQTT when we need to sync.

Motivation

Detect transactions faster with less http requests.

Requirements

  1. Subscribe to address on startup
  2. When an even arrives, update the wallet/call sync
  3. If background syncing is enabled, increase the interval

Are you planning to do it yourself in a pull request?

Maybe.

HiGregory commented 2 years ago

Hi @Thoralf-M - we have enabled MQTT for our DataGovs Dashboard and collaborated with IOTA Foundation as a strategic partner. See Article

Right now the data connects to a cloud provider (storage) and we haven't released our public version that connects to the IOTA Tangle via node, but we are testing internally. Would love to have you as a tester if interested.

Our link is Govs.io and you can email me at team@datagovs.com if you want to get in.