close server

This commit is contained in:
Karsten Hassel 2021-09-15 21:09:31 +02:00
parent a3a6c33b32
commit c15b31b374
2 changed files with 8 additions and 1 deletions

View file

@ -92,6 +92,11 @@ function Server(config, callback) {
if (typeof callback === "function") {
callback(app, io);
}
this.close = function () {
server.close();
}
}
module.exports = Server;