From a27ee7f362e1631bad744901686bf73becfa80d7 Mon Sep 17 00:00:00 2001 From: Dangrainage <99558179+Dangrainage@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:26:40 +0200 Subject: [PATCH] Update chatroom.HTML --- chatroom.HTML | 3 --- 1 file changed, 3 deletions(-) diff --git a/chatroom.HTML b/chatroom.HTML index 58b26c1..266d7aa 100644 --- a/chatroom.HTML +++ b/chatroom.HTML @@ -45,8 +45,6 @@ }); function sendMessage(message) { - // Here, you would typically send the message to your server using an AJAX request - // For demonstration purposes, we'll just add the message locally messages.push(message); updateChatbox(); } @@ -65,7 +63,6 @@ // Polling with a 3-second interval setInterval(function() { // Perform an AJAX request to the server to get new messages - // Replace the URL with the appropriate endpoint on your server fetch('/getNewMessages') .then(response => response.json()) .then(data => {