Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/pages/Chatroom.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@ export default function Chatroom() {

// 메시지 전송
const handleSendMessage = () => {
console.log('메세지 전송 시작 ',message.toString())

if (isComposing) {
console.log('메세지 전송 시작 isComposing', isComposing)
return;
}
if (!message.trim()) {
Expand All @@ -568,6 +571,8 @@ export default function Chatroom() {
destination: `/app/chat/${actualRoomId}/send`,
body: JSON.stringify(messageData)
});

console.log('메세지 전송 완료 ',message.toString())
setMessage('');
} catch (error) {
console.error('메시지 전송 실패:', error);
Expand Down