src/server/index.js
/**
 * Shutdown the process
 *
 * By default, it will attempt to gracefully shutdown the server by closing all remaining
 * connections before shutting down the process. If the forceful shutdown flag is set, no attempt
 * will be made to close the remaining connections.
 *
 * @private
 * @param {boolean} [force] Forceful shutdown flag
 */
Shutdown the process
By default, it will attempt to gracefully shutdown the server by closing all remaining
connections before shutting down the process. If the forceful shutdown flag is set, no attempt
will be made to close the remaining connections.

@private
@param {boolean} [force] Forceful shutdown flag
Shutdown the process By default it will attempt to gracefully shutdown the server by closing all remaining connections before shutting down the process . If the forceful shutdown flag is set no attempt will be made to close the remaining connections . @private @param { boolean } [ force ] Forceful shutdown flag
function shutdown(force = false)
{
    if(force)
        process.exit();
    server.close(() =>
    {
        process.exit();
    });
    setTimeout(() =>
    {
        Core.logger.log(Core.LOG_LEVEL.SEVERE, "Could not close connections in time! Forcefully shutting down.");
        process.exit(1);
    }, shutdownTimeout);
}
function shutdown ( force = false ) { if ( force ) process . exit ( ) ; server . close ( ( ) => { process . exit ( ) ; } ) ; setTimeout ( ( ) => { Core . logger . log ( Core . LOG_LEVEL . SEVERE , "Could not close connections in time! Forcefully shutting down." ) ; process . exit ( 1 ) ; } , shutdownTimeout ) ; }
Shutdown the process
 By default, it will attempt to gracefully shutdown the server by closing all remaining
 connections before shutting down the process.
Shutdown the process By default it will attempt to gracefully shutdown the server by closing all remaining connections before shutting down the process .
// Gracefully close remaining connections