Enhance chat and broadcast functionality with debug logging for image messages. Update chat store to log received messages and their details, and modify broadcast to log image sending events. Increase maxHttpBufferSize for handling larger images in Socket.IO.

This commit is contained in:
Torsten Schulz (local)
2025-12-05 09:29:18 +01:00
parent 7b98f7a5ac
commit 9b4f679f71
3 changed files with 25 additions and 5 deletions

View File

@@ -34,7 +34,10 @@ const io = new SocketIOServer(server, {
methods: ['GET', 'POST']
},
transports: ['websocket', 'polling'],
allowEIO3: true
allowEIO3: true,
maxHttpBufferSize: 10 * 1024 * 1024, // 10MB für große Bilder (Base64-kodiert)
pingTimeout: 60000,
pingInterval: 25000
});
console.log('Socket.IO Server initialisiert auf Express-Server');