mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
13 lines
289 B
JavaScript
13 lines
289 B
JavaScript
|
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);
|
||
|
}
|