mirror of https://github.com/jetkvm/kvm.git
fix: Update comments for WebRTC connection handling in KvmIdRoute
This commit is contained in:
parent
ed914b3578
commit
19915abbca
|
@ -202,7 +202,6 @@ export default function KvmIdRoute() {
|
||||||
console.log("Successfully got Remote Session Description. Setting.");
|
console.log("Successfully got Remote Session Description. Setting.");
|
||||||
setLoadingMessage("Setting remote session description...");
|
setLoadingMessage("Setting remote session description...");
|
||||||
|
|
||||||
// When vivaldi has disabled "Broadcast IP for Best WebRTC Performance" this goes on forever
|
|
||||||
const decodedSd = atob(json.sd);
|
const decodedSd = atob(json.sd);
|
||||||
const parsedSd = JSON.parse(decodedSd);
|
const parsedSd = JSON.parse(decodedSd);
|
||||||
pc.setRemoteDescription(new RTCSessionDescription(parsedSd));
|
pc.setRemoteDescription(new RTCSessionDescription(parsedSd));
|
||||||
|
@ -215,6 +214,7 @@ export default function KvmIdRoute() {
|
||||||
|
|
||||||
const checkInterval = setInterval(() => {
|
const checkInterval = setInterval(() => {
|
||||||
attempts++;
|
attempts++;
|
||||||
|
// When vivaldi has disabled "Broadcast IP for Best WebRTC Performance", this never connects
|
||||||
if (pc.sctp?.state === "connected") {
|
if (pc.sctp?.state === "connected") {
|
||||||
console.log("Remote description set");
|
console.log("Remote description set");
|
||||||
clearInterval(checkInterval);
|
clearInterval(checkInterval);
|
||||||
|
|
Loading…
Reference in New Issue