setTimeout

public final Unit setTimeout(Integer timeout)

Connection timeout in seconds. Defaults to 0 (no limit).

If exceeded, the connection attempt is considered timed out and the timeout callback is triggered. 0 uses the SDK's default timeout strategy.