void start(int reloadTimeout = 10, int restartTimeout = 20, bool autoFeed = true)

Starts the watchdog timer

Security

Trust Level Required: Full Trust

Parameters

Name Description
reloadTimeout (Optional) int
The number of seconds before the browser will reload if the page hangs. Defaults to 10 seconds.
restartTimeout (Optional) int
The number of seconds before KioWare will restart if the page hangs. Defaults to 20 seconds.
autofeed (Optional) bool
Set this to true to automatically feed the watchdog, or false to manually call KioWatchdog.feed(). Defaults to true.

Return

Nothing returned

Remarks

The restartTimeout value should always be greater than the reloadTimeout.

Examples


window.addEventListener("beforeunload", function() {
	KioWatchdog.stop();
});

KioWatchdog.start(10, 20, false);

// Note: This is not needed if autofeed = true
setInterval(function() {
	KioWatchdog.feed();
}, 1000);

Requirements

KioWare OS (Linux®) version 1.0 or greater.


Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.