setTimeout

open override fun setTimeout(msecs: Number, callback: () -> Unit)(source)

Once a socket is assigned to this request and is connected socket.setTimeout() will be called.

Since

v0.5.9

Parameters

timeout

Milliseconds before a request times out.

callback

Optional function to be called when a timeout occurs. Same as binding to the 'timeout' event.