From c76027bb842e49964b078127d74e1a4b82b20922 Mon Sep 17 00:00:00 2001 From: Aubrey Taylor Date: Mon, 23 Dec 2024 03:14:28 -0600 Subject: [PATCH] steal peerjs turn servers for testing --- src/lib/client.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/client.ts b/src/lib/client.ts index f0a242c..a812d76 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -176,9 +176,18 @@ export class Peer { this.connection = new RTCPeerConnection({ iceServers: [ { - urls: ["stun:stun.l.google.com:19302"], + urls: [ + "stun:stun.l.google.com:19302", + ], + }, { + urls: [ + "turn:eu-0.turn.peerjs.com:3478", + "turn:us-0.turn.peerjs.com:3478", + ], + username: "peerjs", + credential: "peerjsp", } - ] + ], }); this.targetPlayerName = writable(""); this.targetPlayer = derived([this.targetPlayerName, this.client.playersByName], ([playerName, players]) => players[playerName]);