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
We are sending an IQ stanza with sendIQ API. And if the response is 'terminate' type, the 'callback' or 'errback' specified for the sendIQ won't get triggered. And the timeout specified for sendIQ won't trigger the 'errback' either.
We'll have to listen to the status change event to handle this case, and sendIQ is supposed to trigger either the 'callback' or 'errback' when received the 'terminate' type response, in order to mark an end to this sendIQ action.
The text was updated successfully, but these errors were encountered:
AFAIK, there is no "terminate" type for IQ stanzas, so you're probably getting a "terminate" signal in some other stanza type, right?
If so, it makes sense that the callbacks don't get called, since there was never a response.
Considering the timeout, I suspect that doesn't get triggered because after the "terminate" signal has been received, Strophe.js starts tearing down everything.
Perhaps that can be fixed so that the timeout gets called immediately once "terminate" is received.
I don't currently have time to look into this, since it's an issue in your setup/stack, perhaps you could take a stab at implementing such a change and making a pull request?
We are sending an IQ stanza with
sendIQ
API. And if the response is 'terminate' type, the 'callback' or 'errback' specified for thesendIQ
won't get triggered. And thetimeout
specified forsendIQ
won't trigger the 'errback' either.We'll have to listen to the status change event to handle this case, and
sendIQ
is supposed to trigger either the 'callback' or 'errback' when received the 'terminate' type response, in order to mark an end to thissendIQ
action.The text was updated successfully, but these errors were encountered: