From 3cf06ad087f615736deff5733e27fce067125757 Mon Sep 17 00:00:00 2001 From: yennanliu Date: Thu, 16 Nov 2023 19:12:00 +0800 Subject: [PATCH] add --- springChatRoom/src/main/resources/static/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/springChatRoom/src/main/resources/static/js/main.js b/springChatRoom/src/main/resources/static/js/main.js index 71d72a5ac..7c00754fa 100644 --- a/springChatRoom/src/main/resources/static/js/main.js +++ b/springChatRoom/src/main/resources/static/js/main.js @@ -197,6 +197,7 @@ function startChat(username) { // Customize the way messages are displayed in the popup window chatMessages.innerHTML += '

You: ' + message + '

'; + // TODO : implement below in BE // Add your logic to send the message to the other user // Example: stompClient.send('/app/private/' + username, {}, JSON.stringify({ sender: 'You', content: message, type: 'CHAT' }));