mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3121 from magma1447/dev
SPLIT Join node - support for msg.resetTimeout …
This commit is contained in:
commit
5df0dae11a
@ -631,6 +631,19 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.hasOwnProperty("restartTimeout")) {
|
||||
if (inflight[partId]) {
|
||||
if (inflight[partId].timeout) {
|
||||
clearTimeout(inflight[partId].timeout);
|
||||
}
|
||||
if (node.timer > 0) {
|
||||
inflight[partId].timeout = setTimeout(function() {
|
||||
completeSend(partId)
|
||||
}, node.timer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.hasOwnProperty("reset")) {
|
||||
if (inflight[partId]) {
|
||||
if (inflight[partId].timeout) {
|
||||
|
@ -115,7 +115,7 @@
|
||||
<p>A <i>count</i> can be set for how many messages should be received before generating the output message.
|
||||
For object outputs, once this count has been reached, the node can be configured to send a message for each subsequent message
|
||||
received.</p>
|
||||
<p>A <i>timeout</i> can be set to trigger sending the new message using whatever has been received so far.</p>
|
||||
<p>A <i>timeout</i> can be set to trigger sending the new message using whatever has been received so far. This timeout can be restarted and set to its initial value by sending a message with the <code>msg.restartTimeout</code> property set.</p>
|
||||
<p>If a message is received with the <code>msg.complete</code> property set, the output message is finalised and sent.
|
||||
This resets any part counts.</p>
|
||||
<p>If a message is received with the <code>msg.reset</code> property set, the partly complete message is deleted and not sent.
|
||||
|
Loading…
Reference in New Issue
Block a user