Thanks @alexeypetrushin. But the goal is really that, to keep working until the 
user closes the browser. Imagine that you are observing the temperatures of a 
sensor, or viewing the values of the stock exchange in graphs! It was very cool 
if it was possible to detect when the user closes the browser! Is there any 
code on how to create a asyncrounous ping, which can serve as an example to 
start? The ideal was something like the php 
[connection_aborted()](https://www.php.net/manual/en/function.connection-aborted.php)
 function!

Reply via email to