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' }));