The following call makes like around 800 connection in 5 seconds, I want to make a connection every 5 seconds to reduce the number of connections. If I put retry(5) after 5 attempts it will stop and I may not have a successful result in 5 tries, thats why I need a time here I think.
this.http.get(`api`)
.pipe(retry())
.subscribe(s=>{
//result
},error=>(error));
I don't know where should I put interval actually as far as I know it should come after subscribe but it seems this approach is not the right way.