More detailed error log to debug disconnect issue

This commit is contained in:
David Négrier 2020-05-13 22:11:05 +02:00
parent 6e71d7f28a
commit 11972555ee

View 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;