Added channel-kicks. added up disconnect message
This commit is contained in:
parent
796bb033a7
commit
5c30508e96
5 changed files with 30 additions and 5 deletions
|
|
@ -28,5 +28,6 @@ module.exports.socketExceptionHandler = function(socket, err){
|
|||
|
||||
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()}]});
|
||||
socket.emit("kick", {type: "error", reason: err.message});
|
||||
return socket.disconnect();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue