From 049a3d83fe128433042717bf8912d86dcd9763c7 Mon Sep 17 00:00:00 2001 From: rationalsa Date: Wed, 26 Jan 2022 23:48:39 +0000 Subject: [PATCH] Log remote messages --- belaUI.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/belaUI.js b/belaUI.js index 608c105..5601a6b 100644 --- a/belaUI.js +++ b/belaUI.js @@ -148,7 +148,6 @@ wss.on('connection', function connection(conn) { } conn.on('message', function incoming(msg) { - console.log(msg); try { msg = JSON.parse(msg); handleMessage(conn, msg); @@ -1881,6 +1880,8 @@ function tryAuth(conn, msg) { function handleMessage(conn, msg, isRemote = false) { + console.log(msg); + if (!isRemote) { for (const type in msg) { switch(type) {