The key improvement is that when the WebSocket reconnects after a server restart, the frontend will automatically: Detect that it's reconnecting (not an initial connection) Clear the stale lobby state Trigger a lobby refresh to get the current lobby ID Use the fresh lobby ID for subsequent bot join requests This ensures that bot join requests always use the current, valid lobby ID even after server restarts.
To deploy:
export PUBLIC_URL=/ai-voicebot
npm run build
rsync --delete -avrpl build/ webserver:/var/www/ketrenos.com/ai-voicebot/