Answer the question
In order to leave comments, you need to log in
How to get a permanent request?
Suppose there is a qiwi application that we all use.
Next, we go through authorization, if everything is OK and the server is available, the application gives us access.
If the application is not available, it gives an error "not available" after authorization.
How can I for example constantly find out every 3-5 minutes whether the application is available or not?
What should I know: ip address or what?
Answer the question
In order to leave comments, you need to log in
Well put it out
setInterval( () => {
fetch('ip/request-url').then((resp) => { /*прила доступна*/}).catch(error =>{/*прила недоступна*/});
} ,5000)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question