Goal: Create a checkForInactivity action, that fires an event after 5 minutes.
To achieve this the following code can be used:
{
"type": "checkForInactivity",
"params": {
"timeout": 300,
"event": "inactivityEvent"
}
}
The value of timeout is specified in seconds, so a value of 300 corresponds to 5 minutes.