From 3ed9778c6ebc094869889391f6e815e3f28ff24f Mon Sep 17 00:00:00 2001 From: Dev10us <112738649+melonmasteristaken@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:38:11 +0800 Subject: [PATCH] Update main.js --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index 7a1fa80..7cc959d 100644 --- a/js/main.js +++ b/js/main.js @@ -354,6 +354,8 @@ setTimeout(() => { mainChannel.message(username + ' has joined the chatroom!'); }, 1000); +mainChannel.history(); + mainChannel.on('history', function(action) { console.log('history', action); // Your code for processing history goes here if (action.action === 'message') {