Problem: Cannot Hear Audio After Entering Your WebSocket URL
Step 1: Test connection with Postman
1
Open Postman
Create a new WebSocket request.
2
Connect
Enter your WebSocket URL and click Connect.
3
Send a test message
Navigate to the Message tab, enter “Hello”, and click Send. You should receive the message back in your server.
Step 2: Verify endpoint protocol
Step 3: Check for trailing slash
Some server setups don’t allow a trailing slash in the URL.- ✅ Correct:
https://example.com/websocket - ❌ Incorrect:
https://example.com/websocket/
Step 4: Check for server response
- Add logging in your WebSocket code to verify the connection is established
- Add logging in your message handler to confirm messages are received from UponAI
Problem: Call Always Disconnects After a Few Seconds
- Add logging to check if you’re sending
end_call: trueunintentionally anywhere in your code - Verify your server setup supports persistent WebSocket connections — Vercel edge functions and serverless functions cannot act as WebSocket servers