timeout

fun timeout(requestTimeoutMillis: Long? = null, connectTimeoutMillis: Long? = null, socketTimeoutMillis: Long? = null): TimeoutsSchema

Timeout overrides for SendNetworkRequest, GetScreen, RefreshScreen, DownloadFile, DownloadFileToDisk, DownloadFileToMemory and UploadFile, all in milliseconds. Any value left null keeps the client's default for that timeout. On the web, downloads and uploads only honor requestTimeoutMillis (and have no timeout without it); on Android, DownloadFile ignores these values.

Parameters

requestTimeoutMillis

whole call, from sending the request to receiving the full response.

connectTimeoutMillis

time allowed to establish the connection.

socketTimeoutMillis

maximum inactivity between two data packets — including the wait for the response headers, so it must cover the time the server takes to answer.