Fossil SCM

Forgot to add the "keepalive.js" source file.

drh 2020-04-09 16:16 idle-timeout
Commit 58dbde20c4bf19ab6ef8ac74e1c798a3dba45bae527d055442e4651d0b9e7716
1 file changed +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());

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button