protected function isServerless()

in src/ClientBuilder.php [432:442]


    protected function isServerless(array $hosts): bool
    {
        if (empty($hosts) || count($hosts)>1) {
            return false;
        }
        $url = $hosts[0];
        if (preg_match('/\.elastic\.cloud/i', $url)) {
            return true;
        }
        return false;
    }