Skip to content

web.setReadTimeout ^v2.7.94 ​

Sets how long a web request waits for the next data from the server before timing out. It limits the gaps between data, not the time to read the whole response. Defaults to 30 seconds.

If the server takes longer than this to send the next data, the request is stopped and an error is returned.

js
web.setReadTimeout(seconds)

Parameters ​

ParameterTypeDescription
secondsnumberThe seconds to wait.

Examples ​

js
web.setReadTimeout(60); // Set read timeout to 60 seconds