When performing computations on a server, the client inputs data that is captured through Javascript. A XMLHttpRequest is made to send this data to the server for processing. What happens if the computation takes an hour and the client leaves or switches off their system?
In typical practice, polling from the client side can be used to check if the result is ready. However, is there a way to implement this using callbacks? For example, could the server contact the client side Javascript the next time the client logs in to pass along the result? Any suggestions on how to achieve this without needing a webserver on the client side?