Added default implementation of stop() function.

This commit is contained in:
shbatm 2017-10-15 18:44:11 -05:00
parent f646360af6
commit f4c6f42c38

View File

@ -23,6 +23,17 @@ NodeHelper = Class.extend({
console.log("Starting module helper: " + this.name);
},
/* stop()
* Called when the MagicMirror server receives a `SIGINT`
* Close any open connections, stop any sub-processes and
* gracefully exit the module.
*
*/
stop: function() {
console.log("Stopping module helper: " + this.name);
},
/* socketNotificationReceived(notification, payload)
* This method is called when a socket notification arrives.
*