Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
melonmasteristaken authored Jul 31, 2024
1 parent cdabd68 commit 3ed9778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 3ed9778

Please sign in to comment.