From 6aa5968863b075b8310d1dac60bc943769828347 Mon Sep 17 00:00:00 2001
From: Nick O'Leary
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.
-The Setup tab contains code that will be run whenever the node is started. - The Close tab contains code that will be run when the node is stopped.
-If an promise object is returned from the setup code, input message processing starts after its completion.
+The On Start tab contains code that will be run whenever the node is started. + The On Stop tab contains code that will be run when the node is stopped.
+If the On Start code returns a Promise object, the node will not start handling messages + until the promise is resolved.
See the online documentation for more information on writing functions.