Giter VIP home page Giter VIP logo

novus-component's People

Contributors

michielvdvelde avatar

Watchers

 avatar  avatar

novus-component's Issues

Add reconnect logic

When the component disconnects from the MQTT broker, even if this is involuntary (e.g. no end packet sent), the reference to MQTT.js is removed, thus not allowing reconnect logic. The MQTT.js package does seem to support it, so it might be prudent to rewrite the start() logic to take advantage of this.

Also, check to see how unclean sessions are handled, and if anything needs to be changed for (better) session support.

Create some way of easily retrieving and storing config settings

The component's get() and set() methods allow one to store configuration variables in a configurable store. Yet this still requires manually setting up one or more routes (if the config values are stored in MQTT retained messages, as they are in my case). It would be a nice addition if the amount of work to do this could be lowered.

A simple example:

component.setConfig([
  'some/config/topic',
  'another/config/topic',
  'a/longer/topic/#key'
]);

I'd love to hear some input on this.

Allow multiple topic definitions per route

Example:

component.route({
  route: [ 'topic/one', 'topic/two', 'topic/three' ],
  // ...

This can be used for different topics that need to call the same handler for processing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.