To fix this, add a setInterval over a period of time if a response is not received from the server.
If this is true, repeat the same validation request 3 times and if it still times out, then send a timeout message to the client (with something like Internal Server Error).
To fix this, add a
setInterval
over a period of time if a response is not received from the server.If this is true, repeat the same validation request 3 times and if it still times out, then send a timeout message to the client (with something like
Internal Server Error
).