Introducing close event to notify about server stop.
This closes #236 on GitHub. Thanks to 0xcdcdcdcd.
This commit is contained in:
@@ -387,6 +387,10 @@ Server.prototype.emit_events = function (server, req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
Server.prototype.emit_close = function () {
|
||||
this.emit('close');
|
||||
};
|
||||
|
||||
function connectionListener(socket) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user