# Handling async responses in uibuilder

**URL:** https://discourse.nodered.org/t/handling-async-responses-in-uibuilder/45756
**Category:** General
**Created:** [17 May 2021 06:28 UTC](https://discourse.nodered.org/t/handling-async-responses-in-uibuilder/45756 "2021-05-17T06:28:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amitsinghio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/amitsinghio/32/40329_2.png) [@amitsinghio](https://discourse.nodered.org/u/amitsinghio)
#### Post date: [17 May 2021 06:28 UTC](https://discourse.nodered.org/t/handling-async-responses-in-uibuilder/45756/1 "2021-05-17T06:28:23Z")

</div>

Hi Guys,

I have another rather stupid question regarding uibuilder. How do I handle async calls with uibuilder? In my case I have a function, which sends a message to node-red, which then returns another message. Is there a uibuilder way to handle async calls? Just listening to the message, does not do the trick obviously. Any help is appreciated. Thanks in advance 🙂

best regards,

Amit Singh

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [18 May 2021 00:06 UTC](https://discourse.nodered.org/t/handling-async-responses-in-uibuilder/45756/2 "2021-05-18T00:06:35Z")

</div>

You need to add something to the initial message that can then be returned back to the front-end when processing is completed in Node-RED. Could be some kind of tag or a specific topic or anything else really.

I have thought about other ways of doing this but really, the overheads don't seem worth-while. Though I can always be persuaded to change things if a suitably strong, general purpose need is identified.

---

<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: [17 July 2021 00:06 UTC](https://discourse.nodered.org/t/handling-async-responses-in-uibuilder/45756/3 "2021-07-17T00:06:39Z")

</div>

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