First, attempt to connect to your websocket URL endpoint using Postman. This step helps verify if the websocket connection is successfully established.
How to Test:
Open Postman and select the option to create a new WebSocket request.
Enter your WebSocket URL and click on “Connect”.
Once connected, navigate to the “Message” tab, enter “Hello”, and click “Send”.
You should receive the message back in your server indicating a successful connection.
Some server setups might not allow a trailing slash in the URL. Make sure to check your URL format carefully.
Correct Format:https://example.com/websocket
Incorrect Format (sometimes):https://example.com/websocket/
By following these steps, you should be able to diagnose and potentially fix the issue preventing audio from playing through your WebSocket URL. If problems persist, consider consulting your server or network administrator for further assistance.
Problem: If my call always disconnects automatically after 5min / 10min
Check the server vendor you have, and see if you are getting automatically timed out for it.For example, Replit non reserved instance would timeout at 5min.