diff --git a/packages/node_modules/@node-red/nodes/core/sequence/17-split.js b/packages/node_modules/@node-red/nodes/core/sequence/17-split.js index e3e4377f5..e158f344c 100644 --- a/packages/node_modules/@node-red/nodes/core/sequence/17-split.js +++ b/packages/node_modules/@node-red/nodes/core/sequence/17-split.js @@ -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) { diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/sequence/17-split.html b/packages/node_modules/@node-red/nodes/locales/en-US/sequence/17-split.html index 3334ec126..4884c96da 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/sequence/17-split.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/sequence/17-split.html @@ -115,7 +115,7 @@

A count 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.

-

A timeout can be set to trigger sending the new message using whatever has been received so far.

+

A timeout 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 msg.restartTimeout property set.

If a message is received with the msg.complete property set, the output message is finalised and sent. This resets any part counts.

If a message is received with the msg.reset property set, the partly complete message is deleted and not sent.