S
S
superivankorolev2016-04-03 06:29:23
Node.js
superivankorolev, 2016-04-03 06:29:23

How to catch an error in express when the client terminated the connection?

I am making an HTTP API, and it is very important for me to know for sure whether the client received the entire response or downloaded, for example, 70% of the page and disconnected.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Super User, 2016-04-03
@superivankorolev

Try listening to the close event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question