
🔐 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!
