mirror of
https://github.com/johndoe6345789/docker-swarm-termina.git
synced 2026-04-24 13:45:01 +00:00
This change resolves the WebSocket connection error that occurs when Cloudflare or other reverse proxies block WebSocket upgrade attempts. Changes: - Frontend: Configure Socket.IO client to use polling-only transport - Backend: Add documentation comment about transport configuration - Remove WebSocket URL conversion (no longer needed for polling) The error occurred because: 1. Socket.IO started with HTTP polling (successful) 2. Attempted to upgrade to WebSocket (blocked by Cloudflare) 3. Browser received invalid/blocked frames causing "Invalid frame header" 4. Eventually fell back to polling (working) With this fix: - Socket.IO uses HTTP long-polling exclusively - No WebSocket upgrade attempts - No "Invalid frame header" errors - Connection remains stable through Cloudflare Polling transport provides equivalent functionality and reliability. https://claude.ai/code/session_mmQs0