add kick_disconnect listener for better debug

This commit is contained in:
business-goose 2021-03-26 16:49:51 +00:00
parent 7f462942c0
commit ad16e93405

View file

@ -124,6 +124,10 @@ client.on("end", function(reason){
process.exit(0) process.exit(0)
}) })
client.on("kick_disconnect", function(packet){
console.log(packet)
})
client.on("error", function(err){ client.on("error", function(err){
console.log(err) console.log(err)
process.exit(0) process.exit(0)