Skip to content
Snippets Groups Projects
Commit 0c4e7f1c authored by MaikoVoigt's avatar MaikoVoigt
Browse files

Tutorial 7 - webSocketChat.js Console.log() entfernt

parent 2be3a3ce
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ const ws = new WebSocket('ws://localhost:3000/chat'); // URL anpassen
// Ereignishandler für eingehende Nachrichten
ws.onmessage = function(event) {
const message = event.data;
console.log(message);
messageHistory.innerHTML += `<li>${message}</li>`;
scrollToBottom(); // scoll bis zum Ende der Nachrichten
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment