setTimeout

public final Unit setTimeout(Integer timeout)

Connection timeout in seconds. Defaults to -1 (no limit).

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