Create server.js

This commit is contained in:
pancakes-proxy 2025-03-10 12:36:02 -04:00 committed by GitHub
parent e39ee07723
commit 707c6e70d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
server.js Normal file
View File

@ -0,0 +1,4 @@
socket.on('chat message', (msg) => {
console.log(`Message received: ${msg}`);
io.emit('chat message', msg);
});