From 6eaea7cc1e609e30b8ec6dd603b983ef0d62e894 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 1 Apr 2020 14:30:04 +0200 Subject: [PATCH] Log ws messages --- assets/js/common/ws.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/common/ws.js b/assets/js/common/ws.js index 7cc05614..08b22145 100644 --- a/assets/js/common/ws.js +++ b/assets/js/common/ws.js @@ -143,6 +143,7 @@ class UserWebSocket { const req_id = "r-"+reqCounter++; // Send the message + console.info("WS request", req_id, title, data); this.ws.send(JSON.stringify(new WsMessage({ id: req_id, title: title, @@ -166,6 +167,8 @@ class UserWebSocket { */ static async ProcessMessage(msg) { + console.info("WS remote message", msg); + // Check if the message is not associated if any request if(!msg.hasId) this.ProcessDetachedMessage(msg)