mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 03:15:01 +00:00
Every Orca socket into orcad already gets a WS ping every 10-15 s (orcad's server heartbeat and the desktop's client liveness). Share links were the gap: the in-VM share proxy piped upgraded sockets raw, so a preview app's silent WebSocket was closed by Vercel after ~340 s (1006), well before the link's deadline. The proxy now follows the app's frame boundaries and, after 30 s with no traffic either way, sends the visitor an empty ping frame between two frames (never inside one). Only 101 upgrades to websocket get pings; other upgrade protocols stay a raw pipe. VM script: reaches live VMs through the boot-time entry-point sync (new stamp), and the next golden.