error handling

This commit is contained in:
wphan
2023-10-27 22:43:16 -07:00
parent a130bac2cf
commit 659bd65b38

View File

@@ -42,6 +42,9 @@ async function main() {
console.log('Client disconnected');
});
socket.on('error', (error) => {
console.error('Socket error:', error);
});
});
server.listen('3000', () => {