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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user