# Multiple Messages on different outputs with delay

**URL:** <https://discourse.nodered.org/t/multiple-messages-on-different-outputs-with-delay/62911>\
**Category:** General\
**Created:** [21 May 2022 09:59 UTC](https://discourse.nodered.org/t/multiple-messages-on-different-outputs-with-delay/62911 "2022-05-21T09:59:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sahsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sahsha/32/43845_2.png) [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Post date:** [21 May 2022 10:20 UTC](https://discourse.nodered.org/t/multiple-messages-on-different-outputs-with-delay/62911/2 "2022-05-21T10:20:43Z")

</div>

Found one alternate with delay node. But I want to achieve it in **function node**.

> [@Delay inside function node between messages?](https://discourse.nodered.org/t/delay-inside-function-node-between-messages/3736/5):
>
> This should do what you want, using just the delay node. [{"id":"55680c13.4953a4","type":"debug","z":"7920414b.cfa4f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":650,"y":120,"wires":[]},{"id":"85c8db46.a1272","type":"function","z":"7920414b.cfa4f8","name":"","func":"// msg.delay is in milliseconds\nvar msg1 = { payload:\"first out of output 1\", delay:10000 };\n// if msg.delay is undefined, the delay node uses default\nvar msg2 = { payload:\"…

---

_[View the full topic](https://discourse.nodered.org/t/multiple-messages-on-different-outputs-with-delay/62911)._
