From 8eff420b09365f1d15bdfb949dc9468df349ea2f Mon Sep 17 00:00:00 2001 From: Kyle Breeding Date: Thu, 30 May 2024 13:58:30 -0700 Subject: [PATCH] chore(demo): add turn server fallback for demo --- sites/dapp-ui/src/components/ConnectModal.tsx | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/sites/dapp-ui/src/components/ConnectModal.tsx b/sites/dapp-ui/src/components/ConnectModal.tsx index 41f9b66..21760ea 100644 --- a/sites/dapp-ui/src/components/ConnectModal.tsx +++ b/sites/dapp-ui/src/components/ConnectModal.tsx @@ -28,13 +28,13 @@ export function ConnectModal({ color, }: { color?: - | 'inherit' - | 'primary' - | 'secondary' - | 'success' - | 'error' - | 'info' - | 'warning'; + | 'inherit' + | 'primary' + | 'secondary' + | 'success' + | 'error' + | 'info' + | 'warning'; }) { const { client, dataChannel } = useSignalClient(); const navigate = useNavigate(); @@ -58,6 +58,16 @@ export function ConnectModal({ 'stun:stun2.l.google.com:19302', ], }, + { + urls: [ + "turn:global.relay.metered.ca:80", + "turn:global.relay.metered.ca:80?transport=tcp", + "turn:global.relay.metered.ca:443", + "turns:global.relay.metered.ca:443?transport=tcp" + ], + username: "fc7708976bf5d60be20c5a1d", + credential: "sVpEREQGGhXOw4gX", + }, ], iceCandidatePoolSize: 10, })