log("open websocket");

          const offer = await new Promise(
            (r) => (socket.onmessage = (ev) => r(JSON.parse(ev.data)))
          );
          console.log("offer", offer.sdp);

          const peer = (rtc = new RTCPeerConnection({
            iceServers: [],
          }));

          peer.onicecandidate = ({ candidate }) => {
            if (!candidate) {
              const sdp = JSON.stringify(peer.localDescription);
              console.log(peer.localDescription.sdp);
              soc