Files
chat/ws_test_final_results.txt
Andrew K. Choi cfc93cb99a
All checks were successful
continuous-integration/drone/push Build is passing
feat: Fix nutrition service and add location-based alerts
Changes:
- Fix nutrition service: add is_active column and Pydantic validation for UUID/datetime
- Add location-based alerts feature: users can now see alerts within 1km radius
- Fix CORS and response serialization in nutrition service
- Add getCurrentLocation() and loadAlertsNearby() functions
- Improve UI for nearby alerts display with distance and response count
2025-12-13 16:34:50 +09:00

23 lines
810 B
Plaintext

🔐 Step 1: Getting JWT token...
Status: 200
✅ Token obtained: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1M...
✅ User ID: 51
📡 Step 2: Testing WebSocket connection...
✅ WebSocket connected!
📨 Received: {"type": "connection_established", "message": "WebSocket connection established successfully", "user_id": 51, "timestamp": "2025-12-13T14:15:14.982894"}
🏓 Step 3: Testing ping/pong...
📤 Ping sent
📨 Received: {"type": "connection_established", "message": "Connected to emergency notifications", "user_id": 51}
👂 Step 4: Listening for broadcasts (10 seconds)...
(Leave this running and create an emergency alert in another terminal)
📨 Broadcast received: {
"type": "pong"
}
⏱️ No broadcasts received (timeout)
✅ WebSocket connection test completed successfully!