# Proposal to add msg.resetTimeout support for Join node

**URL:** <https://discourse.nodered.org/t/proposal-to-add-msg-resettimeout-support-for-join-node/50156>\
**Category:** Feature Requests\
**Tags:** split\
**Created:** [25 August 2021 11:01 UTC](https://discourse.nodered.org/t/proposal-to-add-msg-resettimeout-support-for-join-node/50156 "2021-08-25T11:01:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magma1447](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magma1447/32/46977_2.png) [@magma1447](https://discourse.nodered.org/u/magma1447)\
**Post date:** [25 August 2021 11:01 UTC](https://discourse.nodered.org/t/proposal-to-add-msg-resettimeout-support-for-join-node/50156/1 "2021-08-25T11:01:59Z")

</div>

I have found the join node (part of split) quite useful, not the least that it can collect N messages and send them after a defined time after the first message.

However, I have a case where I would like it to be a certain time after the last message, or when the required number of parts has been fulfilled. My first thought was to add a new option into the interface that allowed the timer to be reset upon every message. But to me it seemed more cumbersome, and less useful/dynamic than the approach I actually chose (I have small a patch ready).

Since the node already listens for _msg.complete_ and _msg.reset_ I though I'll just add support for **msg.resetTimeout** as well. It's a very small patch and the user can choose with which messages the timer should reset, or not at all. Also, 100% backward compatibility, as long as no one has resetTimeout set, to a value interpreted as true, for some other reason.

---

<div class="post-metadata">

**Author:** ![magma1447](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magma1447/32/46977_2.png) [@magma1447](https://discourse.nodered.org/u/magma1447)\
**Post date:** [25 August 2021 11:06 UTC](https://discourse.nodered.org/t/proposal-to-add-msg-resettimeout-support-for-join-node/50156/2 "2021-08-25T11:06:21Z")

</div>

I also created [this pull request](https://github.com/node-red/node-red/pull/3121).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 October 2021 11:06 UTC](https://discourse.nodered.org/t/proposal-to-add-msg-resettimeout-support-for-join-node/50156/3 "2021-10-24T11:06:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
