setCommandTimeout

abstract fun setCommandTimeout(commandTimeout: Int): ConversationsClient.Properties.Builder

Set timeout for commands which SDK sends over network (i.e. send, join etc). onError will be called when timeout is reached.

In case of bad connectivity SDK retries to send command until timeout is reached. Timeout could occur earlier than specified time if there is no enough time to make one more attempt.

At the moment when timeout happened the request could be already transmitted to the backend or not. In case when it has been transmitted, after timeout it doesn't rollback any actions made by request, just ignores the response.

The default value is DEFAULT_COMMAND_TIMEOUT.

Return

Self for chaining.

Parameters

commandTimeout

timeout in milliseconds. Must be greater than or equal to MIN_COMMAND_TIMEOUT

Throws