@echo off
cd /d "%~dp0"

echo Installing websockets library (first time only)...
pip install websockets --quiet

echo.
echo Starting HTTP server on port 8080...
start "HTTP Server" python -m http.server 8080

echo Starting WebSocket relay on port 8765...
start "WS Relay" python ws_server.py

timeout /t 2 /nobreak > nul
start http://localhost:8080/presentation.html

echo.
echo ==========================================
echo  [PRESENTATION] http://localhost:8080
echo  WS    : ws://localhost:8765
echo  Close both console windows to stop.
echo ==========================================
pause
