018-test-websocket-connection.md
1 --- 2 title: "MC-018: Test WebSocket Connection" 3 labels: ["test", "integration", "phase-2"] 4 assignee: null 5 --- 6 7 ## Tracer Bullet 8 9 ✅ Mission assets appear on map within seconds and reconnect after disconnect 10 11 ## Context 12 13 Verify WebSocket connection between browser and VPS server. 14 15 ## Acceptance Criteria 16 17 - [ ] Replace WS_URL with actual VPS IP 18 - [ ] Mission assets appear on map within 10 seconds 19 - [ ] Assets update every 1 second (smooth movement) 20 - [ ] Reconnection works after forced disconnect 21 22 ## Implementation Steps 23 24 1. Set WS_URL to your VPS IP:PORT 25 2. Start WebSocket server on VPS 26 3. Run dev server and open browser 27 4. Verify assets appear 28 5. Stop server, wait for reconnection, restart server 29 30 ## Notes 31 32 - Replace "YOUR_VPS_IP" with actual IP address 33 - Port 8080 must be accessible from browser 34 - Reconnection takes 3 seconds (RECONNECT_DELAY)