Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda