jeffbski / wait-on

wait-on is a cross-platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available
MIT License
1.87k stars 77 forks source link

Feature request: Compatibility with GraphQL servers #123

Open sepsol opened 2 years ago

sepsol commented 2 years ago

I'm unable to use this package to know when a graphql express server is started and listening for requests. When I tried it with http://localhost:4000/graphql I got http error 405, and when I tried it with http-get://localhost:4000/graphql I got http error code 400. It'd be great if this package supported querying graphql servers to know whether their up.

sepsol commented 2 years ago

Update: After a little bit of more digging into the existing issues, I found that this solution works for my case. So I'm going to use tcp:4000 for now.