Introducing close event to notify about server stop.

This closes #236 on GitHub.
Thanks to 0xcdcdcdcd.
This commit is contained in:
Max Romanov
2019-04-01 16:40:40 +03:00
parent aca42de18a
commit 8557cb3660
2 changed files with 25 additions and 0 deletions

View File

@@ -387,6 +387,10 @@ Server.prototype.emit_events = function (server, req, res) {
});
};
Server.prototype.emit_close = function () {
this.emit('close');
};
function connectionListener(socket) {
}