Git Product home page Git Product logo

mqtt-router's Issues

MQTT Publish Queue options support

Need to have support for options for each message in mqtt-router publish queue.

Like this:
mqttRouter.pushToPublishQueue(topic, message, options)

MQTT Publish Queue

Requirements

  • Need to implement a queue for message publication.
  • MQTT class (MQTT router + this implementation) should frequently check the queue and publish the message in the queue.

Limit one MQTT Router instance for one MQTT Channel

Summary

Need to implement a locking mechanism for registering only one router instance for a particular MQTT Channel. Find more information on the protocol documentation.

Checklist:

  • /service/discovery route handler function
  • /service/terminate/{UUID} route handler function
  • Swarm server time-out and exit event upon terminate request

Fault tolerancy

Summary

Need to idiot proof the library. Don't want to crash the entire applications for TypeErrors. Certain Errors would be okay to crash the whole application.

Separate handler logics based on the retain allowance

Summary

We need to implement a way to handle the logics for both allowedRetain: true and allowedRetain: false as separately. We may also need to configure the route handler function in this implementation as well.

Flexible routing

Summary

We need to implement the functionality to unsubscribe from certain routes declared in the routes array and add other subscriptions and routes after starting the router. Also we need to consider the publishers as well.

Add multiple routes at once

Following should be added to router.ts & update the documentation.

    /**
     * method for adding multiple routes to the list
     * @param {Route[]} route[] list of route objects to be added to the subscriber list
     */
    addRoutes = (routes: Route[]) => {
        for (let i = 0; i < routes.length; i++) {
            //console.log(routes[i].topic);
            this.addRoute(routes[i]);
        }
    };

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.