From f8b860e2ca16ba2c38884850b25c4145b979edba Mon Sep 17 00:00:00 2001 From: Chars chan <28523197+Charsy89@users.noreply.github.com> Date: Mon, 18 Nov 2019 21:17:33 -0700 Subject: [PATCH] Still send chat to user --- src/Room.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;