Skip to content

setReceiveTimeout

Description

Sets the receive timeout period in milliseconds.
If this value is not explicitly set, the default timeout is 10000 ms.
When a value outside the valid range is specified, it is automatically corrected as follows:

  • Values less than 100 are set to 100 ms.
  • Values greater than 300000 are set to 300000 ms.

Syntax

public func setReceiveTimeout(_ timeout: Int)

Parameter

timeout

An integer representing the receive timeout period (milliseconds).