More detailed error log to debug disconnect issue
authorDavid Négrier <d.negrier@thecodingmachine.com>
Wed, 13 May 2020 20:11:05 +0000 (22:11 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Wed, 13 May 2020 20:11:05 +0000 (22:11 +0200)
back/src/Model/Websocket/Message.ts

index 20df9801946c84a12c1beb9d5bd4dbd279ca09ac..ccf5d28722ed60634546e21de44abf7011660128 100644 (file)
@@ -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;