More detailed error log to debug disconnect issue
This commit is contained in:
parent
6e71d7f28a
commit
11972555ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user