
            if (!wsPassword) {
                console.log('OBS WebSocket password not provided. Use ?obspw=yourpassword in URL to enable.');
                return;
            }
            
            obsWebSocket = new OBSWebSocket();
            
            try {
                const { obsWebSocketVersion, negotiatedRpcVersion } = await obsWebSocket.connect(wsUrl, wsPassword);
                console.log(`Connected to OBS WebSocket v${obsWebSocketVersion} (RPC ${negotiatedRpcVersion})`);
