pera-swarm / mqtt-router Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-use and flexible routing library for MQTT.
License: GNU Lesser General Public License v2.1
An easy-to-use and flexible routing library for MQTT.
License: GNU Lesser General Public License v2.1
Like this:
mqttRouter.pushToPublishQueue(topic, message, options)
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 functionNeed 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.
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.
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.
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]);
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.