Fossil SCM
Forgot to add the "keepalive.js" source file.
Commit
58dbde20c4bf19ab6ef8ac74e1c798a3dba45bae527d055442e4651d0b9e7716
Parent
39a899e4cf7da42…
1 file changed
+9
+9
| --- a/src/keepalive.js | ||
| +++ b/src/keepalive.js | ||
| @@ -0,0 +1,9 @@ | ||
| 1 | +/* This javascript runs on web-pages that need to periodically send | |
| 2 | +** a keep-alive HTTP request back to the server. This is typically | |
| 3 | +** used with the "fossil ui" command with a --idle-timeout set. The | |
| 4 | +** HTTP server will stop if it does not receive a new HTTP request | |
| 5 | +** within some time interval (60 seconds). This script keeps sending | |
| 6 | +** new HTTP requests every 20 seconds or so to keep the server running | |
| 7 | +** while the page is still viewable. | |
| 8 | +*/ | |
| 9 | +setInterval(function(){fetch('/noop');},15000+10000*Math.random()); |
| --- a/src/keepalive.js | |
| +++ b/src/keepalive.js | |
| @@ -0,0 +1,9 @@ | |
| --- a/src/keepalive.js | |
| +++ b/src/keepalive.js | |
| @@ -0,0 +1,9 @@ | |
| 1 | /* This javascript runs on web-pages that need to periodically send |
| 2 | ** a keep-alive HTTP request back to the server. This is typically |
| 3 | ** used with the "fossil ui" command with a --idle-timeout set. The |
| 4 | ** HTTP server will stop if it does not receive a new HTTP request |
| 5 | ** within some time interval (60 seconds). This script keeps sending |
| 6 | ** new HTTP requests every 20 seconds or so to keep the server running |
| 7 | ** while the page is still viewable. |
| 8 | */ |
| 9 | setInterval(function(){fetch('/noop');},15000+10000*Math.random()); |