Cleaned up 'src/app/channel'

This commit is contained in:
rainbownapkin 2024-11-20 06:54:44 -05:00
parent 985f8a250f
commit 5b5f495853
4 changed files with 160 additions and 123 deletions

View file

@ -24,4 +24,9 @@ module.exports.exceptionHandler = function(res, err){
module.exports.socketExceptionHandler = function(socket, err){
//if not yell at the browser for fucking up, and tell it what it did wrong.
return socket.emit("error", {errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
}
module.exports.socketCriticalExceptionHandler = function(socket, err){
//if not yell at the browser for fucking up, and tell it what it did wrong.
return socket.disconnect("error", {errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
}