This question is locked. New answers and comments are not allowed.
Hi. There seems to be a default timeout of 60 seconds when issuing an http.request. The NS documentation seems to suggest you can change this period using HttpRequestOptions. If I want to change the timeout to, say, 5 seconds how should I do it?
I tried using the syntax below (using both 5 and 5000) and it doesn't seem to make any difference (at least not on iOS, I haven't tried Android).
http.request({url: "http://myUrl", timeout: 5, method: "GET"}).then(function (r) {
...
}
Am I doing something wrong?
Regards, Ian