diff --git a/src/Room.js b/src/Room.js index 9e4dd11..818294b 100644 --- a/src/Room.js +++ b/src/Room.js @@ -68,6 +68,10 @@ class Room extends EventEmitter { cl.user.id = otheruser.participantId; cl.participantId = otheruser.participantId; this.connections.push(cl); + cl.sendArray([{ + m: "c", + c: this.chatmsgs.slice(-1 * 32) + }]) this.updateCh(cl); } @@ -400,4 +404,4 @@ class Room extends EventEmitter { } } -module.exports = Room; \ No newline at end of file +module.exports = Room;