add helpfull console logs

This commit is contained in:
BopItFreak 2019-06-12 13:06:35 -04:00
parent c9cbbdf5ec
commit 68957ec324
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class Room extends EventEmitter {
m: "c", m: "c",
c: this.chatmsgs.slice(-1 * 32) c: this.chatmsgs.slice(-1 * 32)
}]) }])
console.log("trying send chat", this.chatmsgs.slice(-1 * 32))
this.updateCh(cl); this.updateCh(cl);
} else { } else {
cl.user.id = otheruser.participantId; cl.user.id = otheruser.participantId;

View File

@ -18,6 +18,7 @@ class User {
"_id": _id, "_id": _id,
"ip": this.cl.ip "ip": this.cl.ip
}); });
console.log("Set database", user.name, user._id)
this.updatedb(); this.updatedb();
} }
let user = this.userdb.get(_id); let user = this.userdb.get(_id);