 
            // Setup WebSocket if server parameter is provided
            if (urlParams.has("server") || urlParams.has("server2")) {
                serverURL = urlParams.get("server") || urlParams.get("server2") || serverURL;
                socketserver = new WebSocket(serverURL);
                setupSocket();
            }
            
            // Create iframe for receiving WebRTC data channel messages
            iframe = document.createElement("iframe");
            iframe.src = "http