From 11972555ee3c0fbf75ac368b3495a8e38e7162b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 13 May 2020 22:11:05 +0200 Subject: [PATCH] More detailed error log to debug disconnect issue --- back/src/Model/Websocket/Message.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/back/src/Model/Websocket/Message.ts b/back/src/Model/Websocket/Message.ts index 20df9801..ccf5d287 100644 --- a/back/src/Model/Websocket/Message.ts +++ b/back/src/Model/Websocket/Message.ts @@ -6,6 +6,7 @@ export class Message { constructor(data: any) { if (!data.userId || !data.roomId) { + console.error("Got invalid message", data); throw Error("userId or roomId cannot be null"); } this.userId = data.userId;