mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 23:34:38 +01:00
Created Input node feature definitions (markdown)
11
Input-node-feature-definitions.md
Normal file
11
Input-node-feature-definitions.md
Normal file
@@ -0,0 +1,11 @@
|
||||
This page defines the features and design conventions that each input node should adhere to. The page is currently under development and changes to its contents are possible. Once the behaviour is agreed upon, these conventions are going to be migrated onto the Node-RED website for easy reference.
|
||||
|
||||
Input nodes MUST:
|
||||
|
||||
* Create a new msg JavaScript object for every distinctive output they wish to generate. This is to be achieved for example by:
|
||||
<code>
|
||||
node.on("input", function(msg) {
|
||||
msg = {};
|
||||
handleInputNodeInput(node, msg);
|
||||
});
|
||||
</code>
|
||||
Reference in New Issue
Block a user