set Command Timeout
abstract fun setCommandTimeout(commandTimeout: Int): ConversationsClient.Properties.Builder
Content copied to clipboard
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.
The default value is DEFAULT_COMMAND_TIMEOUT.
Return
Self for chaining.
Parameters
command Timeout
timeout in milliseconds. Must be greater than or equal to MIN_COMMAND_TIMEOUT
Throws
if passed value less than MIN_COMMAND_TIMEOUT