You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I have a requirement to return a response from an IQ query in a separate process after some time (depending on the processing time).
The current implementation of the iqHandler function expects an immediate response from the handler. If no response is returned, an error ("service-unavailable") is returned. However, in my case, I cannot return the response immediately because it will be sent by a separate processing task after some delay.
What do you think about adding an optional new parameter (flag) to the iqCallee function, such as deferReply? By default, this parameter would maintain the current behavior, but when set to true (for example, deferReply: true), it would allow the function to return without waiting for the response.
I can prepare a proposal for such a change, but first I'm curious to hear your opinion
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project, I have a requirement to return a response from an IQ query in a separate process after some time (depending on the processing time).
The current implementation of the iqHandler function expects an immediate response from the handler. If no response is returned, an error ("service-unavailable") is returned. However, in my case, I cannot return the response immediately because it will be sent by a separate processing task after some delay.
What do you think about adding an optional new parameter (flag) to the iqCallee function, such as deferReply? By default, this parameter would maintain the current behavior, but when set to true (for example, deferReply: true), it would allow the function to return without waiting for the response.
I can prepare a proposal for such a change, but first I'm curious to hear your opinion
Beta Was this translation helpful? Give feedback.
All reactions