fixed messages are not displaying on frontend...
This commit is contained in:
@@ -33,7 +33,7 @@ async function initializeSocket() {
|
||||
console.log('Connected to server');
|
||||
});
|
||||
|
||||
socket.on('chat message', ({msg}) => {
|
||||
socket.on('chat message', (msg) => {
|
||||
const item = document.createElement('li');
|
||||
item.textContent = msg;
|
||||
messages.appendChild(item);
|
||||
|
||||
Reference in New Issue
Block a user