webSocketCloseTimeout

fun webSocketCloseTimeout(timeout: Long, unit: <Error class: unknown class>): OkHttpClient.Builder
fun webSocketCloseTimeout(duration: <Error class: unknown class>): OkHttpClient.Builder

Sets the close timeout for web socket connections. A value of 0 means no timeout, otherwise values must be between 1 and Integer.MAX_VALUE when converted to milliseconds.

The close timeout is the maximum amount of time after the client calls WebSocket.close to wait for a graceful shutdown. If the server doesn't respond the web socket will be canceled. The default value is 60 seconds.