From faaa3ae8bc876bd854636246f52d5d533b988a6c Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 14 Mar 2025 00:25:48 +0100 Subject: [PATCH] wip --- main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 990e608..18ad3a3 100644 --- a/main.js +++ b/main.js @@ -50,7 +50,14 @@ const app = createApp({ initPeer() { this.peer = new Peer({ 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);