Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
How to watch every API reponse in angular?

In my case, most of the time API returns some response like data or error, but sometimes request are sent to the server, but there is no response on longtime. I need to watch every API call after the request is sent, if no response from the server for up to 3 mins, then we will refresh the app or log out.

How to do this In angular?

Please help me out.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

HttpInterceptor, you can create a timer on your interceptor to do so. though I am not sure if you really want to logout the user when the server does not respond, the correct way to handle it is usually to give a popup error to the user.

Also, server request should not take that long, should inspect the back-end too.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda