mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
parent
8f7686cd7b
commit
6aa5968863
@ -21,9 +21,10 @@
|
||||
the body of the message.</p>
|
||||
<p>The function is expected to return a message object (or multiple message objects), but can choose
|
||||
to return nothing in order to halt a flow.</p>
|
||||
<p>The <b>Setup</b> tab contains code that will be run whenever the node is started.
|
||||
The <b>Close</b> tab contains code that will be run when the node is stopped.</p>
|
||||
<p>If an promise object is returned from the setup code, input message processing starts after its completion.</p>
|
||||
<p>The <b>On Start</b> tab contains code that will be run whenever the node is started.
|
||||
The <b>On Stop</b> tab contains code that will be run when the node is stopped.</p>
|
||||
<p>If the On Start code returns a Promise object, the node will not start handling messages
|
||||
until the promise is resolved.</p>
|
||||
<h3>Details</h3>
|
||||
<p>See the <a target="_blank" href="http://nodered.org/docs/writing-functions.html">online documentation</a>
|
||||
for more information on writing functions.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user