salmon-leather-15461
07/09/2025, 3:12 PM{
id: "AE_2ftfgVNpoTNp"
project_id: "p_99stuk17a91"
room_id: "RM_uZRFPimU8Nui"
timestamp: "2025-07-09T14:23:30Z"
type: "Participant left (CONNECTION_TIMEOUT)"
participant_id: "PA_o6c3GnTUYCmQ"
participant_identity: "agent-AJ_w4xXW2dbhmaR"
node_id: "NM_OASHBURN1A_HGd4PixR8WP8"
timestamp_us: 1752071010581595
disconnect_reason: "CONNECTION_TIMEOUT"
}
Slack Conversationtall-airline-16756
07/09/2025, 3:12 PMtall-airline-16756
07/09/2025, 3:13 PMconnectOpts.rtcConfig = { iceTransportPolicy: 'relay' }
to bypass potential firewall/NAT restrictions.
• Whitelist TURN server domains (*.turn.livekit.cloud
) on TCP port 443 to ensure TURN connectivity.
• Review and adjust firewall and NAT settings to allow necessary traffic for LiveKit connections.
• Enable detailed logging to capture more diagnostic information around connection timeouts.
If CONNECTION_TIMEOUT persists, investigate network congestion and consider advanced strategies like adjusting buffer sizes or traffic shaping.
These steps collectively help improve connection reliability and reduce timeout occurrences.
Sources: Firewall Tips | src/room/PCTransportManager.ts | Voice Assistants | livekit/livekit_composite | DeepWiki | Speech & Audio Processing | livekit/livekit_composite | DeepWiki | Community & Support | livekit/livekit_composite | DeepWikisalmon-leather-15461
07/09/2025, 3:19 PMtall-airline-16756
07/09/2025, 3:20 PMrtcConfig
to include iceTransportPolicy: 'relay'
when you're setting up your connection.
Just so you know, the Node.js SDK doesn't have a specific connectOpts
parameter, but you can still tweak the WebRTC configuration when you're creating or joining a room.
I'd be happy to help you pinpoint exactly where to add this configuration – if you could share the code snippet you're using to create or connect the client, I can walk you through it!
Oh, and one more thing: make sure your TURN server is all set up and ready to go on the LiveKit server side. Double-check those domain and port settings to ensure your relay connections work smoothly.
Sources: Firewall Tips | Deploying LiveKit | LiveKit Docssalmon-leather-15461
07/09/2025, 3:35 PMtall-airline-16756
07/09/2025, 3:36 PM