We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8aff00 commit 5576adcCopy full SHA for 5576adc
frontend/src/services/socketService.ts
@@ -122,7 +122,7 @@ export const socketService = {
122
reconnectionDelay: 1000, // Start with 1s delay
123
reconnectionDelayMax: 5000, // Max 5s delay
124
timeout: 20000, // Increase connection timeout
125
- transports: ['polling', 'websocket'],
+ transports: ['websocket', 'polling'], // Prioritize WebSocket
126
path: '/api/socket.io/' // Use /api prefix for socket.io
127
});
128
// --- ADD LOG ---
0 commit comments