From 6ac280f17846f533a72bf9f148e103f6c9a4fe57 Mon Sep 17 00:00:00 2001 From: sravan Date: Tue, 16 Jun 2026 13:15:06 +0530 Subject: [PATCH] fix(webrtc): use TURN on desktop too (screen share blank/disconnect) TURN relay candidates were applied only when IS_MOBILE, leaving desktop clients STUN-only. Customers behind symmetric NAT / corporate firewalls / VPNs then couldn't establish the peer connection -> connectionState 'failed' -> "connection lost" -> blank screen right after granting permissions. This hit only some users (those needing a relay). Apply the /api/ice config (STUN + managed TURN) regardless of device, in both the customer (share.html) and agent (connect.html) flows. Requires TURN_URLS / TURN_USERNAME / TURN_CREDENTIAL to be set in the production environment. Co-Authored-By: Claude Opus 4.8 --- server/public/connect.html | 2 +- server/public/share.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/public/connect.html b/server/public/connect.html index dea61c7..4471fb3 100644 --- a/server/public/connect.html +++ b/server/public/connect.html @@ -68,7 +68,7 @@