Revert socket transport settings.

This commit is contained in:
Patrick Fic
2025-07-22 14:23:25 -07:00
parent 19a90571f6
commit 93c6e2b601

View File

@@ -158,10 +158,10 @@ const SocketProvider = ({ children, bodyshop, navigate, currentUser }) => {
auth: { token, bodyshopId: bodyshop.id }, auth: { token, bodyshopId: bodyshop.id },
reconnectionAttempts: Infinity, reconnectionAttempts: Infinity,
reconnectionDelay: 2000, reconnectionDelay: 2000,
reconnectionDelayMax: 60000, reconnectionDelayMax: 60000
randomizationFactor: 0.5, // randomizationFactor: 0.5,
transports: ["websocket", "polling"], // Add this to prefer WebSocket with polling fallback // transports: ["websocket", "polling"], // Add this to prefer WebSocket with polling fallback
rememberUpgrade: true // rememberUpgrade: true
}); });
socketRef.current = socketInstance; socketRef.current = socketInstance;