Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: being able to check if the standalone server is ready. #12

Open
jails opened this issue Oct 13, 2015 · 0 comments
Open

Comments

@jails
Copy link
Contributor

jails commented Oct 13, 2015

Right now ->isRunning() only checks if the parent process is running but doesn't guarantee that the standalone server si ready to process queries.

would be great to have something like:

    public function isReady()
    {
        if ($fd = @fsockopen(<host>, <port>)) {
             close($fd);
             return true:
        }
        return false;
    }

Which check the availability of the standalone server url http://localhost:4444/wd/hub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant