Added cold-persistance to Channel Chat Buffer via periodic DB saves based on chat activity.

This commit is contained in:
rainbow napkin 2025-07-23 01:05:39 -04:00
parent 366df357b8
commit c64b315fdf
7 changed files with 124 additions and 5 deletions

View file

@ -84,6 +84,9 @@ module.exports.socketCriticalExceptionHandler = function(socket, err){
//yell at the browser for fucking up, and tell it what it did wrong.
socket.emit("kick", {type: "Disconnected", reason: `Server Error: ${err.message}`});
}else{
//Locally handle the exception
module.exports.localExceptionHandler(err);
//yell at the browser for fucking up
socket.emit("kick", {type: "Disconnected", reason: "An unexpected server crash was just prevented. You should probably report this to an admin."});
}