SouLWow Lance, what an awesome job! It is just fantastic, I didn't expect a solution that fast :) Very appreciated!
SouLLance, 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.
Lancethere isn't a way to set a timeout for a particular request right now
Lancebut changing client.config.timeout to #-of-seconds will apply for all IQ requests
Lanceby default it is set to 15
SouLAhh, I see! Alright, thank you very much Lance :)
Lanceand 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
Lancei think. ive never actually tried that
SouLGood 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.)