Add Express server with WebSocket, CORS, and room routes

Set up the HTTP server with Express, attach Socket.IO for real-time
messaging, add CORS middleware, async error handling utility, and
REST routes for room join/leave/messages/participants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
francesco448
2026-03-18 16:53:13 +01:00
parent e0d53d6e74
commit 19eba1eebd
6 changed files with 302 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
function asyncHandler(handler) {
return (req, res, next) => {
Promise.resolve(handler(req, res, next)).catch(next)
}
}
module.exports = asyncHandler