steal peerjs turn servers for testing

This commit is contained in:
Aubrey 2024-12-23 03:14:28 -06:00
parent c05f66c96e
commit c76027bb84
No known key found for this signature in database

View file

@ -176,9 +176,18 @@ export class Peer {
this.connection = new RTCPeerConnection({ this.connection = new RTCPeerConnection({
iceServers: [ 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.targetPlayerName = writable("");
this.targetPlayer = derived([this.targetPlayerName, this.client.playersByName], ([playerName, players]) => players[playerName]); this.targetPlayer = derived([this.targetPlayerName, this.client.playersByName], ([playerName, players]) => players[playerName]);