ctions page initialized with session ID:", roomID);
        }

        // WebSocket connection setup
        var conCon = 1;
        var socketserver = false;
        var serverURL = urlParams.has("localserver") ? "ws://127.0.0.1:3000" : "wss://io.socialstream.ninja/extension";

        function setupSocket() {
            socketserver.onclose = function() {
                setTimeout(function() {
                    conCon += 1;
                    socketserver = new WebSocket(serverURL);
    