Handling async responses in uibuilder

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 :slight_smile:

best regards,

Amit Singh

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.

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