Created Input node feature definitions (markdown)

zobalogh 2014-10-29 07:55:44 -07:00
parent f9957177bb
commit 307c1cc2df
1 changed files with 11 additions and 0 deletions

@ -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>