Clean code

Suppression des console log
This commit is contained in:
StayFlex 2024-12-05 20:44:12 +01:00
parent 744117cae8
commit 5a9965270c

View file

@ -16,9 +16,7 @@
let socket = initSocket(); // Initialiser le socket let socket = initSocket(); // Initialiser le socket
socket.on("new-message", (message) => { socket.on("new-message", (message) => {
console.log('Recu du nouveau message', message);
messages = [...messages , message ]; messages = [...messages , message ];
console.log(messages);
}); });
async function sendMessage() { async function sendMessage() {
// Appel API pour envoyer le message // Appel API pour envoyer le message