The dead man's switch allows to set a timer which can be reset again and again within a defined period of time.
You can create an instance via the monster namespace Monster.Util.DeadMansSwitch()
.
<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.Util.DeadMansSwitch()
</script>
Alternatively, you can also integrate this class individually.
<script type="module">
import {DeadMansSwitch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/deadmansswitch.js';
new DeadMansSwitch();
</script>