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]);