I am trying to connect to a livekit server with th...
# ask-ai
b
I am trying to connect to a livekit server with the websocket (not sdk) but when the candidate pairs is selected, the websocket disconnect with no error.
t
Thanks for reaching out, Marcelo. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for reaching out. Based on the information available, LiveKit handles WebSocket disconnections through various mechanisms, including reconnection attempts and ICE restarts. Disconnections can occur due to several reasons, such as network changes, state mismatches, or server-related issues. To troubleshoot your specific issue, please ensure the following: • Verify that your network allows WebRTC connections, including ICE over UDP and TURN with UDP. • Check if there are any network changes or restrictions that might be causing the disconnection. • Ensure that the WebSocket connection is being properly maintained and not closed prematurely by the client or server. If the issue persists, could you provide additional details such as: • The exact error message or logs, if available. • Steps to reproduce the issue. • Any specific configurations or settings you are using. With this information, we can assist you further in identifying the root cause of the disconnection. Sources: livekit.agents API documentation | Connecting to LiveKit | LiveKit Docs | Enum DisconnectReason | LiveKit Unity SDK | DisconnectReason | livekit.agents API documentation
b
In the close event from the websocket the reason is an empty buffer so I cant debug
t
I'm sorry, but I don't have the information you need at the moment. If you would like a member of the LiveKit team to respond, please ask your question in one of the other channels.