ket.send(sdp);
            }
          };

          peer.oniceconnectionstatechange = () => {
            console.log("oniceconnectionstatechange", peer.iceConnectionState);
          };

          let i = 0;
          peer.ontrack = (e) => {
            console.log("ontrack", e);
            const stream = e.streams[0];
            console.log(i);
            switch (i++) {
              case 0:
                videoRef.current.srcObject = stream;
                break;
              case 1:
             