src/Selenium/SeleniumServerAdapter.php
public function getCloudService(): string
    {
        // If cloud service value is not yet initialized, attempt to connect to the server first
        if ($this->cloudService === null) {
            if (!$this->isSeleniumServer()) {
                throw new \RuntimeException(sprintf('Unable to connect to remote server: %s', $this->getLastError()));
            }
        }

        return $this->cloudService;
    }
public function getCloudService(): string
    {
        // If cloud service value is not yet initialized, attempt to connect to the server first
        if ($this->cloudService === null) {
            if (!$this->isSeleniumServer()) {
                throw new \RuntimeException(sprintf('Unable to connect to remote server: %s', $this->getLastError()));
            }
        }

        return $this->cloudService;
    }
Get name of the cloud service we are connected to.

@return string Cloud service identifier; empty string if no cloud service detected