From 61bc357f7e3052e1e2867496de53fd4ddf2cd187 Mon Sep 17 00:00:00 2001 From: artifishvr <59352535+artifishvr@users.noreply.github.com> Date: Tue, 23 Apr 2024 23:08:47 -0700 Subject: [PATCH] do some logging to figure out why god --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index f714cb9..892d5fa 100644 --- a/index.js +++ b/index.js @@ -28,6 +28,13 @@ const client = new Client({ allowedMentions: { parse: [], repliedUser: false } }); +backendsocket.on("connect_error", (err) => { + // the reason of the error, for example "xhr poll error" + console.log(err.message); + // some additional description, for example the status code of the initial HTTP response + console.log(err.description); +}); + if (!fs.existsSync('./temp')) fs.mkdirSync('./temp'); // Map to store the last message timestamp per person