From ad7dcacb339d4dc994364b22f079df9470992f12 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 1 Apr 2020 11:28:13 +0200 Subject: [PATCH] Add fallback for unsupported kind of 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 0cb78fd4..8e95dcf0 100644 --- a/assets/js/common/ws.js +++ b/assets/js/common/ws.js @@ -188,6 +188,9 @@ class UserWebSocket { SendEvent("newNumberUnreadConvs", msg.data) break; + default: + console.error("WS Unspported kind of message!", msg); + break; } }