1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated Input node feature definitions (markdown)

zobalogh 2014-10-29 10:12:50 -07:00
parent 7cf5d041b0
commit b2703b8ede

@ -15,7 +15,10 @@ This page defines the features and design conventions that each input node shoul
### Input nodes SHOULD:
* Have clearly defined behaviour that triggers new msg objects to be sent upon meeting clearly defined conditions
* If a condition forces the node to send multiple messages, they should all be individual msg objects rather than arrays of information
* Clean up their state upon close <code>node.on("close", function() {}</code>
* Clean up their state upon close <code>node.on("close", function() {}</code>
* Report errors using <code>node.warn()</code> or <code>node.error()</code> if the external systems they're accessing are in an unknown/error state
### Input nodes COULD:
* Poll at regular intervals to see if msg trigger conditions are met: