Add Junctions

This commit is contained in:
Nick O'Leary
2022-02-28 12:53:11 +00:00
parent 6a5c50ff77
commit db1ad0df63
13 changed files with 442 additions and 31 deletions

View File

@@ -0,0 +1,5 @@
<!--
05-junction.html
This file exists so that the runtime loads the Junction node into the registry,
but it is empty so it doesn't appear in the editor palette
-->

View File

@@ -0,0 +1,12 @@
module.exports = function(RED) {
"use strict";
function JunctionNode(n) {
RED.nodes.createNode(this,n);
this.on("input",function(msg, send, done) {
send(msg);
done();
});
}
RED.nodes.registerType("junction",JunctionNode);
}