Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 16, 2023
1 parent 86551e8 commit 3cf06ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions springChatRoom/src/main/resources/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function startChat(username) {
// Customize the way messages are displayed in the popup window
chatMessages.innerHTML += '<p><strong>You:</strong> ' + message + '</p>';

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

Expand Down

0 comments on commit 3cf06ad

Please sign in to comment.