Исправлена опечатка TURN

This commit is contained in:
RoyceDa
2026-03-14 23:13:00 +02:00
parent f0d0909382
commit f57ec484e3
2 changed files with 3 additions and 4 deletions

View File

@@ -90,17 +90,16 @@ export function CallProvider(props : CallProviderProps) {
for(let i = 0; i < iceServers.length; i++){
let server = iceServers[i];
formattedIceServers.push({
urls: "trun:" + server.urls + "?transport=udp",
urls: "turn:" + server.urls + "?transport=udp",
username: server.username,
credential: server.credential
});
formattedIceServers.push({
urls: "trun:" + server.urls + "?transport=tcp",
urls: "turn:" + server.urls + "?transport=tcp",
username: server.username,
credential: server.credential
});
}
console.info("ICE SERVERS RECEIVED: ", formattedIceServers);
iceServersRef.current = formattedIceServers;
info("Received ICE servers from server, count: " + formattedIceServers.length);
}, []);

View File

@@ -1,7 +1,7 @@
export const SERVERS = [
//'wss://cdn.rosetta-im.com',
//'ws://10.211.55.2:3000',
'ws://127.0.0.1:3000',
'ws://192.168.6.82:3000',
//'wss://wss.rosetta.im'
];