ipfs-mini
ipfs-mini copied to clipboard
How to check if IPFS is online
Hi, thanks for this great library! I have a question, I want to do a check if IPFS is online, before I give a command like "cat". In the full IPFS.js there is ipfs.isOnline, but this is not available in this library. Is there another way to check? Of do I have to just do for example a "cat" command, and see if it gives an error?
If you can find the API call in the IPFS API docs, and might be able to add something. Not sure on an exact way to approach that though
Sent from my iPhone
On Mar 12, 2018, at 9:07 AM, Michel de Joode [email protected] wrote:
Hi, thanks for this great library! I have a question, I want to do a check if IPFS is online, before I give a command like "cat". In the full IPFS.js there is ipfs.isOnline, but this is not available in this library. Is there another way to check? Of do I have to just do for example a "cat" command, and see if it gives an error?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Ok thanks, I will look at it.