mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
8f7686cd7b
commit
6aa5968863
@ -21,9 +21,10 @@
|
|||||||
the body of the message.</p>
|
the body of the message.</p>
|
||||||
<p>The function is expected to return a message object (or multiple message objects), but can choose
|
<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>
|
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.
|
<p>The <b>On Start</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>
|
The <b>On Stop</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>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>
|
<h3>Details</h3>
|
||||||
<p>See the <a target="_blank" href="http://nodered.org/docs/writing-functions.html">online documentation</a>
|
<p>See the <a target="_blank" href="http://nodered.org/docs/writing-functions.html">online documentation</a>
|
||||||
for more information on writing functions.</p>
|
for more information on writing functions.</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user