This commit is contained in:
Klemek
2025-03-14 00:25:48 +01:00
parent 168c173fec
commit faaa3ae8bc
+8 -1
View File
@@ -50,7 +50,14 @@ const app = createApp({
initPeer() { initPeer() {
this.peer = new Peer({ this.peer = new Peer({
config: { config: {
iceServers: [{ urls: ["stun:stun.l.google.com:19302"] }], iceServers: [
{ urls: "stun:stun.l.google.com:19302" },
{
urls: [`turn:127.0.0.1:3478`, `turns:127.0.0.1:5349`],
username: "user",
credential: "pass",
},
],
}, },
}); });
this.peer.on("open", this.peerOpen); this.peer.on("open", this.peerOpen);