StanzaJS Discussion - 2020-05-13


  1. SouL Wow Lance, what an awesome job! It is just fantastic, I didn't expect a solution that fast :) Very appreciated!
  2. SouL Lance, I'm quite new in Javascript, so sorry in advance if my question sounds dumb :) I'm wondering if it would be possible to specify a timeout for a certain request. I see the following definition in the console: "function getSubscriptions(jid, opts)". would `client.getSubscriptions(jid, {timeout: 60})` or something like that work? Well, if StanzaJS had this implemented, of course.
  3. Lance there isn't a way to set a timeout for a particular request right now
  4. Lance but changing client.config.timeout to #-of-seconds will apply for all IQ requests
  5. Lance by default it is set to 15
  6. SouL Ahh, I see! Alright, thank you very much Lance :)
  7. Lance and its the value of the config setting at the time the request is made that's used. so you _could_ increase the timeout, trigger the iq request, and then set the timeout value back
  8. Lance i think. ive never actually tried that
  9. SouL Good point! :) The problem I have is not related to StanzaJS it seems, I just needed to doublecheck increasing the timeout ^^' (I think the default of 15 is sensible though.)