is-online
is-online copied to clipboard
Is it possible to pass URL in config?
It's not in the docs, so no, it's not currently possible. Why do you need it? What problem would it solve?
It's not in the docs, so no, it's not currently possible. Why do you need it? What problem would it solve?
It's necessary to detect my server is running or not. We cannot relay on connection with google.com. Because if your ISP allow only google.com. This entire module will fail it's purpose.
We used to support a hostnames
option, but it was removed in https://github.com/sindresorhus/is-online/commit/302d8e581046aa5513ecf8c067662474b793516f. I think we should bring it back, but only try the those hostnames if all the 3 current checks fail.
@silverwind Thoughts?
Yes, please. I need this option too. Thanks!
It's a good news
@sindresorhus i'd like to take this one :)
@deadcoder0904 Go ahead :) Don't forget to add tests and docs (readme + index.d.ts).
@freddy-daniel You can use is-reachable pacakge: https://www.npmjs.com/package/is-reachable