server.js
function saveState () {
    winston.info('Saving current state');
    jsonfile.writeFileSync(STATE_FILE, {
        subscriptions: subscriptions,
        callback: callback,
        history: history,
        version: CURRENT_VERSION
    }, {
        spaces: 4
    });
}
function saveState () {
    winston.info('Saving current state');
    jsonfile.writeFileSync(STATE_FILE, {
        subscriptions: subscriptions,
        callback: callback,
        history: history,
        version: CURRENT_VERSION
    }, {
        spaces: 4
    });
}
function saveState ( ) { winston . info ( 'Saving current state' ) ; jsonfile . writeFileSync ( STATE_FILE , { subscriptions : subscriptions , callback : callback , history : history , version : CURRENT_VERSION } , { spaces : 4 } ) ; }
Resubscribe on a periodic basis
@method saveState
Resubscribe on a periodic basis