Purpose
The application needs to be informed if activity (keyboard or mouse input) has (or has not) occurred in a given period.
SSF Activity API
ssf.activity(period, callback);
period (number): Time period in milliseconds.
callback: Every time period the callback will be invoked and pass back a boolean value. The boolean value will be true if activity has occurred in the last period and false if no activity has occurred. Activity is defined as keyboard or mouse interaction anywhere in the OS.
Implementation
Could be implemented using node module: https://github.com/paulcbetts/node-system-idle-time